Commits

Stephen McDonald committed 0cce7bc

Emit the comment_was_posted signal in the comments view.

Comments (0)

Files changed (1)

mezzanine/generic/views.py

 
 from django.contrib.admin.views.decorators import staff_member_required
+from django.contrib.comments.signals import comment_was_posted
 from django.db.models import get_model, ObjectDoesNotExist
 from django.http import HttpResponse, HttpResponseRedirect
 
                                               request.META["REMOTE_ADDR"])
         comment.replied_to_id = request.POST.get("replied_to")
         comment.save()
+        comment_was_posted.send(sender=comment.__class__, comment=comment,
+                                request=request)
         response = HttpResponseRedirect(comment.get_absolute_url())
         # Store commenter's details in a cookie for 90 days.
         cookie_expires = 60 * 60 * 24 * 90