#17417: "Save as new" does not work when a ValidationError is raised
--------------------------------+------------------------------------
     Reporter:  cauley.chris@…  |                    Owner:  nobody
         Type:  Bug             |                   Status:  new
    Component:  contrib.admin   |                  Version:  master
     Severity:  Normal          |               Resolution:
     Keywords:  save_as unique  |             Triage Stage:  Accepted
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  1
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+------------------------------------
Changes (by hirokiky):

 * cc: hirokiky@… (added)


Comment:

 I added a patch to fix this bug.

 It changes to call add_view when the form is valid and "_saveasnew" in
 request.POST.
 The form is not valid, it operates as same the normal "save" behavior.

 The gregmuellegger's test patch can't be used as it is.
 What do you say about this behavior?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17417#comment:6>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/080.a90c2d6870192889708dfbb784011269%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to