#16582: InlineModelAdmin subclass does not respect the 'extra' field
-----------------------+-------------------------------
 Reporter:  peter2108  |          Owner:  nobody
     Type:  Bug        |         Status:  new
Milestone:             |      Component:  contrib.admin
  Version:  1.3        |       Severity:  Normal
 Keywords:             |   Triage Stage:  Unreviewed
Has patch:  0          |  Easy pickings:  0
    UI/UX:  0          |
-----------------------+-------------------------------
 Upgrading from Django 1.x to Django 1.3 I needed to change the class below
 setting extra=0 in order to obtain 1 extra field.  When extra was 1 then 2
 extra fields were shown, when extra was 3 then 4 extra fields were shown
 etc. The max_num was respected.

 {{{#!python
 class MyInlineModelAdmin(InlineModelAdmin):
     template = "admin/projects/project/tabular.html"
     extra = 1  # shows 2 extra fields
     max_num = 6
     formfield_overrides = {
         models.ImageField: {'widget': ThumbnailWidget},
     }
   }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16582>
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