Question

In the admin panel, can you rename a record (eg CT33 in CT34 without CT33 erasing )?

for example in the admin panel, two buttons save and save as

No correct solution

OTHER TIPS

ModelAdmin.save_as

Set save_as to enable a “save as” 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” button.

“Save as” means the object will be saved as a new object (with a new ID), rather than the old object.

By default, save_as is set to False.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top