X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/5d2c22628bbba4eb7ea12a1f5e11bdcc6c866e03..525b287d2a1c652749f6e175568695907ac3a65b:/sommitrealweird/blog/models.py?ds=inline diff --git a/sommitrealweird/blog/models.py b/sommitrealweird/blog/models.py index fa2e954..9548a32 100644 --- a/sommitrealweird/blog/models.py +++ b/sommitrealweird/blog/models.py @@ -1,4 +1,3 @@ -from django.contrib.comments.moderation import CommentModerator, moderator from django.db import models from django.conf import settings from django.contrib import admin @@ -29,17 +28,6 @@ class BlogEntry(models.Model): class Meta: ordering = ['-publish_date'] -class BlogEntryCommentModerator(CommentModerator): - email_notification = True - - def moderate(self, comment, content_object, request): - if request.user.is_authenticated(): - return False - else: - return True - -moderator.register(BlogEntry, BlogEntryCommentModerator) - class BlogSection(models.Model): title = models.CharField(max_length=150) slug = models.SlugField()