There should be a way to perform operations once the admin is done with a form
|Reported by:||info.ksamuel@…||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 julien
- Component changed from Uncategorized to contrib.admin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 5 years ago by jezdez
- Summary changed from There should be a way to perform operations once the admin si done with a form to There should be a way to perform operations once the admin is done with a form