There should be a way to perform operations once the admin is done with a form
|Reported by:||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently, adding m2m relationships programatically on a model save() is tricky if you want to use the admin: the admin calls save_m2m that clear the relationship and don't let you to hook something easily after that.
You can see the problem here:
And here as well, with a workaround:
Some kind of after_form_save signal would be great for this situation.
Change History (4)
comment:1 Changed 5 years ago by
|Component:||Uncategorized → contrib.admin|
|Patch needs improvement:||unset|
comment:2 Changed 5 years ago by
|Summary:||There should be a way to perform operations once the admin si done with a form → There should be a way to perform operations once the admin is done with a form|