Closed bung87 closed 7 years ago
I'm curious, does it matter who the sender is? You could listen to the comment_was_posted
signal directly:
from django_comments.signals import comment_was_posted
@receiver(signals.comment_was_posted)
def on_comment_posted(comment, request, **kwargs):
pass
get_comments_model
will return threadedcomment model class or django's comment model,so the handler function will receive different type of comment instance,I think write django-fluent-comments custom signal will be great,so developer will not confuse with this.and in fluentcomments models.py specify adispatch_uid
to signal receiver if just use signal from django's comment signal,or use fluentcomments custom signal and in views.py send signal toFluentComment
.