#14938: "Save as" does not save entries added with a TabularInline
-------------------------------------------+--------------------------------
          Reporter:  rax                   |         Owner:  nobody  
            Status:  new                   |     Milestone:          
         Component:  django.contrib.admin  |       Version:  1.2-beta
        Resolution:                        |      Keywords:  save-as 
             Stage:  Unreviewed            |     Has_patch:  1       
        Needs_docs:  0                     |   Needs_tests:  1       
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by rax):

  * needs_better_patch:  => 0
  * has_patch:  0 => 1
  * needs_tests:  => 1
  * needs_docs:  => 0

Comment:

 The "save as" button in the admin change form simply redirects to the
 add_view with the only difference that the "save_as_new" parameter is
 passed to the formset:

 {{{
 formset = FormSet(data=request.POST, files=request.FILES,
          instance=new_object,
          save_as_new=request.POST.has_key("_saveasnew"),
          prefix=prefix, queryset=inline.queryset(request))
 }}}

 Where "FormSet" are instances of "BaseInlineFormSet"

 It's a problem in the BaseInlineFormSet class. See the attached patch.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14938#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 django-upda...@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