#16327: "save as new" redirects to list view instead of newly-created item
-------------------------------------+-------------------------------------
               Reporter:  candlerb   |          Owner:  nobody
                   Type:             |         Status:  new
  Uncategorized                      |      Component:  contrib.admin
              Milestone:             |       Severity:  Normal
                Version:  1.3        |       Keywords:  saveasnew
             Resolution:             |      Has patch:  1
           Triage Stage:  Design     |    Needs tests:  0
  decision needed                    |  Easy pickings:  0
    Needs documentation:  0          |
Patch needs improvement:  0          |
                  UI/UX:  0          |
-------------------------------------+-------------------------------------

Comment (by candlerb):

 The use case is to be able to make multiple clones of an existing model,
 each slightly different. It's painful if you have to keep re-locating the
 just-saved model in the changelist.

 "continue editing" is arguably orthogonal to "save / save as new" - but I
 don't want four buttons `:-)`

 Suggestion: permit `_continue` as a separate form field. That is, the
 posted data could contain both `_saveasnew` ''and'' `_continue`. You could
 then add `_continue` as a hidden field (for fixed behaviour) or a
 checkbox.

 For this to work, we just need to ensure that both flags are honoured if
 they are both present in the view code. It should be backwards-compatible,
 since `_continue` can also be a submit button.

 I would like to be able to control this from the `ModelAdmin` without
 having to write my own `submit_line` though. e.g.

 {{{
 save_as = True
 continue_editing = False / True / 'ask' # ???
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16327#comment:2>
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