#27566: Clarify documentation of ModelAdmin.save_model and delete_model
------------------------------------------------+--------------------------
Reporter: Doug Harris | Owner: nobody
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.10
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+--------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/27566>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/050.c874ccb50e5df8db08de675180b47fe4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.