#29982: Change form fields don't appear on the same as requested in
ModelAdmin.fields
-------------------------------+--------------------------------------
     Reporter:  Artur Ivanov   |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  contrib.admin  |                  Version:  2.1
     Severity:  Normal         |               Resolution:
     Keywords:  model admin    |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Simon Charette):

 I haven't been able to reproduce either with the following models and
 admin

 {{{#!python
 from django.db import models

 class Author(models.Model):
     title = models.CharField(max_length=100)
     first_name = models.CharField(max_length=100)
     last_name = models.CharField(max_length=100)
     dob = models.DateField(null=True)
 }}}

 {{{#!python
 from django.contrib import admin

 from .models import Author

 @admin.register(Author)
 class AuthorAdmin(admin.ModelAdmin):
     fields = [
         'title',
         ('first_name', 'last_name'),
         'dob',
     ]
 }}}

 The `first_name` and `last_name` appear side by side while `title` and
 `dob` are on their own lines.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29982#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.2141a3a39ce8a1e45ac2b80c606db243%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to