#27643: ModelAdmin.save_as is ignored
--------------------------------+--------------------------------------
     Reporter:  Flavio Curella  |                    Owner:  nobody
         Type:  Bug             |                   Status:  closed
    Component:  contrib.admin   |                  Version:  1.10
     Severity:  Normal          |               Resolution:  invalid
     Keywords:                  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------
Changes (by Flavio Curella):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 after looking through the code, it's clear that the `save_as` option only
 applies when _editing_ an existing object.

 Although not explictly stated, it is somewhate implied in the docs
 (emphasis added):

 > Normally, **objects** have three save options: “Save”, “Save and
 continue editing”, and “Save and add another”. If save_as is True, “Save
 and add another” will be replaced by a “Save as new” button that creates a
 new object (with a new ID) rather than updating the **existing object**.

 Closing as invalid,

--
Ticket URL: <https://code.djangoproject.com/ticket/27643#comment:1>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.403dbb2223837c8c88b1330d39cb130d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to