#9318: "Virtual" behaviour for signal dispatcher and model inheritance
-------------------------------------+--------------------------------------
Reporter: svetlyak40wt | Owner: nobody
Status: new | Milestone:
Component: Core framework | Version: 1.0
Resolution: | Keywords: model inheritance,
signals, dispatch
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Changes (by shadfc):
* cc: shadfc (added)
Comment:
This would be helpful for me. I have a Payment class with subclasses of
things like PaypalPayment, CreditCardPayment, GiftCertificatePayment, etc.
Payment FKs to an Order and I want to update some status stuff about Order
whenever its payments change. So it appears that as of now, I just have
to listen for post_* on all of the child classes. Not terrible, but I
expected that Payment would emit a signal when a child class save()s, for
instance.
--
Ticket URL: <http://code.djangoproject.com/ticket/9318#comment:5>
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
-~----------~----~----~----~------~----~------~--~---