#27566 closed Cleanup/optimization (fixed)
Clarify documentation of ModelAdmin.save_model and delete_model
Reported by: | Doug Harris | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.10 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When working with ModelAdmin.save_model()
it wasn't clear to me if these were meant to be overriden or if they were hooks. If hooks, did they run before or after save?
The existing documentation say "must save the object" but then also says "Here you can do any pre- or post-save operations."
I've updated the documentation (in a forthcoming PR) in a way that clarifies this.
Note:
See TracTickets
for help on using tickets.
PR