summaryrefslogtreecommitdiffstats
path: root/forum/models/content.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/models/content.py')
-rw-r--r--forum/models/content.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/forum/models/content.py b/forum/models/content.py
index eb2b423e..ec7f26b8 100644
--- a/forum/models/content.py
+++ b/forum/models/content.py
@@ -44,13 +44,6 @@ class Content(models.Model):
abstract = True
app_label = 'forum'
- def save(self,**kwargs):
- super(Content,self).save(**kwargs)
- try:
- ping_google()
- except Exception:
- logging.debug('problem pinging google did you register you sitemap with google?')
-
def get_comments(self):
comments = self.comments.all().order_by('id')
return comments
@@ -72,7 +65,7 @@ class Content(models.Model):
user=user,
added_at=added_at
)
- comment.save()
+ comment.parse_and_save()
self.comment_count = self.comment_count + 1
self.save()
return comment