#14034: admin inline formset with "extra" ignores last line when saving
-----------------------------------+----------------------------------------
          Reporter:  qnix          |         Owner:  nobody             
            Status:  closed        |     Milestone:  1.3                
         Component:  Contrib apps  |       Version:  1.2                
        Resolution:  worksforme    |      Keywords:  admin, save, inline
             Stage:  Unreviewed    |     Has_patch:  0                  
        Needs_docs:  0             |   Needs_tests:  0                  
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => worksforme
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I can't recreate the behavior you describe. First, with extra=2 and no
 max_num in an inline definition, I see 2 empty inlines to add new records,
 not 3, so having extra+1 empty inlines showing up indicates something off
 somewhere -- I do not recall ever seeing that behavior. I don't understand
 the comment about no max_num explaining that behavior. You may see fewer
 than extra empty forms, if adding the specified number extra forms would
 cause the total number to exceed max_num, but I don't recall any
 conditions where you should get more than extra empty inlines showing up.

 Second, in my tests all inlines that have data entered before pressing
 save are in fact validated and saved.

 I think there must be some additional information about your
 setup/configuration you have not included here that explains what is going
 on; so far as I can see there is not a bug in Django here.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14034#comment:1>
Django <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