admin.ModelAdmin.save_as

ModelAdmin.save_as

Set save_as to enable a “save as new” feature on admin change forms.

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.

By default, save_as is set to False.

doc_Django
2016-10-09 18:33:55
Comments
Leave a Comment

Please login to continue.