From 39da608eda071907241240925e7206a80e88bc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Thu, 29 Dec 2011 23:53:07 +0100 Subject: Added Creole markup for models. --- sublab_project/news/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sublab_project/news') 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) -- cgit v1.2.1