#12679: In admin, inlines should be allowed to be properties
-------------------------------------+-------------------------------------
               Reporter:  mariarchi  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Milestone:             |      Component:  contrib.admin
                Version:  SVN        |       Severity:  Normal
             Resolution:             |       Keywords:  admin inlines duck
           Triage Stage:  Accepted   |  typing
    Needs documentation:  0          |      Has patch:  0
Patch needs improvement:  0          |    Needs tests:  0
                                     |  Easy pickings:  0
-------------------------------------+-------------------------------------
Changes (by julien):

 * easy:   => 0


Comment:

 Currently a lot of `ModelAdmin`'s attributes (`list_display`,
 `readonly_fields`, `list_filter`, etc.) are expected to be lists or
 tuples. `ModelAdmin.inlines` shouldn't be treated as a special case. If we
 allow it to be merely an iterable, then the same should be done for all
 those other attributes. (Hint: check out
 `django.contrib.admin.validation.check_isseq()`)

 See also #16089 which is looking at adding flexibility with inlines
 registration.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/12679#comment:5>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to