On Thu, 2006-10-19 at 09:45 -0700, Rob Hudson wrote: > I set up comments on my blog and want them to be emailed to me so I > know when I get traffic. Is there something in the comments framework > to do this easily? > > I'm looking at the code and PublicFreeCommentManipulators.save() > doesn't have a call to mail_managers(). But I wasn't sure if there > were another way this is done or if I should hack the save method to > make my mail_managers call.
James has already mentioned the generally best comment-specific solution (which is "go and read his blog post about it"). However, in general, for problems like this, remember that Django dispatches a post_save signal as well and you can catch that (which includes the instance, so you can work out the model) and do whatever you like with it. There are plenty of posts in the archives of this list and on the Wiki about how to use signals (especially http://code.djangoproject.com/wiki/Signals , which will eventually go into the core documentation). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---