fix spelling before it leads to bugs. will need to syncdb

pull/1/head
eric 2012-04-11 13:37:36 -04:00
parent d88a908082
commit 80c3a0090f
6 changed files with 10 additions and 7 deletions

View File

@ -67,7 +67,7 @@ registration.signals.user_activated.connect(merge_emails)
def create_notice_types(app, created_models, verbosity, **kwargs):
notification.create_notice_type("wishlist_comment", _("Wishlist Comment"), _("a comment has been received on one of your wishlist books"), default = 1)
notification.create_notice_type("coment_on_commented", _("Comment on Commented Work"), _("a comment has been received on a book that you've commented on"))
notification.create_notice_type("comment_on_commented", _("Comment on Commented Work"), _("a comment has been received on a book that you've commented on"))
notification.create_notice_type("successful_campaign", _("Successful Campaign"), _("a campaign that you have supported or followed has succeeded"))
notification.create_notice_type("active_campaign", _("New Campaign"), _("a book you've wishlisted has a newly launched campaign"))
@ -81,7 +81,7 @@ def notify_comment(comment, request, **kwargs):
logger.info('comment %s notifying' % comment.pk)
other_commenters = User.objects.filter(comment_comments__content_type=comment.content_type, comment_comments__object_pk=comment.object_pk).distinct().exclude(id=comment.user.id)
other_wishers = comment.content_object.wished_by().exclude(id=comment.user.id).exclude(id__in=other_commenters)
notification.queue(other_commenters, "coment_on_commented", {'comment':comment}, True)
notification.queue(other_commenters, "comment_on_commented", {'comment':comment}, True)
notification.queue(other_wishers, "wishlist_comment", {'comment':comment}, True)
comment_was_posted.connect(notify_comment)

View File

@ -1,5 +0,0 @@
{{ comment.user.username }} on {{ comment.content_object.title }}
{{ comment.comment }}

View File

@ -0,0 +1,8 @@
We thought you might like to know, there are new comments for a book you have commented on.
{{ comment.user.username }} on {{ comment.content_object.title }}
{{ comment.comment }}
To change your email preferences, visit https://unglue.it/notification/settings/