Created
October 19, 2011 00:42
-
-
Save kimsterv/1297195 to your computer and use it in GitHub Desktop.
django comment signals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.comments.signals import comment_was_posted | |
@receiver(comment_was_posted) | |
def my_callback(sender, **kwargs): | |
comment = kwargs.get('comment') | |
request = kwargs.get('request') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment