]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/blog/models.py
Fix photo ordering
[sommitrealweird.git] / sommitrealweird / blog / models.py
index fa2e954f49e8319a031b93a3ea5174c758eab730..9548a32b5b2a4fc1c445109c0292cd9a0b516fa3 100644 (file)
@@ -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
 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 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()
 class BlogSection(models.Model):
     title = models.CharField(max_length=150)
     slug = models.SlugField()