summaryrefslogtreecommitdiff
path: root/sublab_project/news
diff options
context:
space:
mode:
authorMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-29 23:53:07 +0100
committerMarkus Zapke-Grùˆndemann <info@keimlink.de>2011-12-29 23:53:07 +0100
commit39da608eda071907241240925e7206a80e88bc50 (patch)
tree7da9ef3beabc92234a0686584c0ad594515f4e55 /sublab_project/news
parent1d0eba831cffc82bcf4957bc7d97f6e235f5c8fe (diff)
Added Creole markup for models.
Diffstat (limited to 'sublab_project/news')
-rw-r--r--sublab_project/news/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sublab_project/news/models.py b/sublab_project/news/models.py
index c0b54f7..b1a0acc 100644
--- a/sublab_project/news/models.py
+++ b/sublab_project/news/models.py
@@ -4,6 +4,7 @@ from django.contrib.auth.models import User
from django.db import models
from projects.models import Project
+from utils import render_creole
class News(models.Model):
@@ -26,4 +27,5 @@ class News(models.Model):
if not self.id:
self.date_created = datetime.datetime.now()
self.date_updated = datetime.datetime.now()
+ self.content_html = render_creole(self.content)
super(News, self).save(*args, **kwargs)