#13950: Add "post save" hook to ModelAdmin class
-------------------------------------------+--------------------------------
Reporter: 3point2 | Owner: pandres
Status: closed | Milestone:
Component: django.contrib.admin | Version: 1.2
Resolution: wontfix | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 1 | Needs_tests: 1
Needs_better_patch: 1 |
-------------------------------------------+--------------------------------
Changes (by pandres):
* status: new => closed
* needs_better_patch: 0 => 1
* resolution: => wontfix
* needs_tests: 0 => 1
* needs_docs: 0 => 1
Comment:
I'm not sure if I understand what do you mean. How will the model know if
all of its related objects have been saved?
There are many ways you can do this, including showing the related objects
in the same admin view of the main object
(http://docs.djangoproject.com/en/dev/ref/contrib/admin/#inlinemodeladmin-
objects).
In your example you can also compute the total when getting the attribute.
--
Ticket URL: <http://code.djangoproject.com/ticket/13950#comment:2>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.