#10672: Proxy Model does not send save signal ---------------------------------------------------+------------------------ Reporter: zbyte64 | Owner: nobody Status: new | Milestone: 1.1 Component: Database layer (models, ORM) | Version: 1.1-beta-1 Resolution: | Keywords: Stage: Design decision needed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Comment (by Valera_Grishin):
Well, I though so too unless following happened to work: {{{ #!python from django.db import models from django.db.models.signals import post_save class MyModel(models.Model): pass def listener(sender, **kwargs): print "MyModel changed" class ChangeLinstener: def __init__(self): post_save.connect(listener, sender=MyModel) }}} Which looks like hackish design (the "listener" function should be inside ChangeListener). -- Ticket URL: <http://code.djangoproject.com/ticket/10672#comment:8> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---