#6075: max_num for inline models in newforms-admin
---------------------------+------------------------------------------------
Reporter:  yserrano        |       Owner:  yserrano       
  Status:  new             |   Component:  Admin interface
 Version:  newforms-admin  |    Keywords:                 
   Stage:  Unreviewed      |   Has_patch:  1              
---------------------------+------------------------------------------------
 The max_num feature is missing in the newforms-admin branch. When you add
 max_num to your Child_Inline max_num doesn't do anything.
 {{{
 from django.contrib import admin
 class Child_Inline(admin.TabularInline):
     model = Child
     extra = 3
     max_num = 5
 }}}

 I looked at the code in {{{ django/contrib/admin/options.py }}} and it
 seems that there is no max_num feature there.

 I added a patch with the missing functionality. I'm not sure if it's the
 best way to do it, especially the line with apply in it.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6075>
Django Code <http://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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to