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

没有正确的解决方案

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top