summaryrefslogtreecommitdiff
path: root/news/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'news/models.py')
-rw-r--r--news/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/news/models.py b/news/models.py
index 42adc199..d51db7c7 100644
--- a/news/models.py
+++ b/news/models.py
@@ -16,7 +16,7 @@ class News(models.Model):
title = models.CharField(max_length=255)
guid = models.CharField(max_length=255, editable=False)
content = models.TextField()
- safe_mode = models.BooleanField(default=True, editable=False)
+ safe_mode = models.BooleanField(default=True)
def get_absolute_url(self):
return '/news/%s/' % self.slug
@@ -34,6 +34,7 @@ class News(models.Model):
get_latest_by = 'postdate'
ordering = ('-postdate',)
+
def set_news_fields(sender, **kwargs):
news = kwargs['instance']
current_time = now()