Commits

Anonymous committed 2be7ef0

Fix the Akismet widget to the Zine widget's conventions.

  • Participants
  • Parent commits 788f7d6

Comments (0)

Files changed (1)

File zine/plugins/akismet_spam_filter/__init__.py

 
 
 class AkismetBlockedCommentsCounterWidget(Widget):
-    NAME = 'get_akismet_blocked_comments'
-    TEMPLATE = 'akismet_widget.html'
+    name = 'akismet_blocked_comments'
+    template = 'akismet_widget.html'
 
     def __init__(self, show_title=False, title='Akismet Blocked Comments'):
         self.show_title = show_title
         self.title = title
-        self.spam_comments = Comment.objects.filter(
+        self.spam_comments = Comment.query.filter(
             Comment.blocked_msg == BLOCKED_MSG).count()
 
     @staticmethod