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

> '''What steps will reproduce the problem?'''
> 1. go to the admin change form of an instance of a model class with both
> the "save as" feature enabled, and a TabularInline for relate items.
> 2. change the original instance
> 3. add a new related instance using the TabularInline
>
> '''What is the expected output? What do you see instead?'''
> A new instance should be created, a copy of all the related instances
> should be created and a new instance for any item added in the
> TabularInline should be created.
> Instead the original item is created, all the pre-existing instances are
> copied but the new ones are not created.
>
> Note: deleting an entry works as expected is just the add that "fails" by
> creating the new instance without adding the new related items.
>
> '''Additional information'''
> django version: 1.2.3
> locale: it-IT
>
> this may also be related to [http://code.djangoproject.com/ticket/4045]

New description:

 '''What steps will reproduce the problem?'''

  1. go to the admin change form of an instance of a model class with both
 the "save as" feature enabled, and a TabularInline for relate items.
  2. change the original instance
  3. add a new related instance using the TabularInline

 '''What is the expected output? What do you see instead?'''

 A new instance should be created, a copy of all the related instances
 should be created and a new instance for any item added in the
 TabularInline should be created.
 Instead the original item is created, all the pre-existing instances are
 copied but the new ones are not created.

 Note: deleting an entry works as expected is just the add that "fails" by
 creating the new instance without adding the new related items.

 '''Additional information'''

 django version: 1.2.3
 locale: it-IT

 this may also be related to #4045

Comment (by ramiro):

 (reformatted description)

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