diff options
author | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-29 23:53:07 +0100 |
---|---|---|
committer | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-29 23:53:07 +0100 |
commit | 39da608eda071907241240925e7206a80e88bc50 (patch) | |
tree | 7da9ef3beabc92234a0686584c0ad594515f4e55 /sublab_project/projects | |
parent | 1d0eba831cffc82bcf4957bc7d97f6e235f5c8fe (diff) |
Added Creole markup for models.
Diffstat (limited to 'sublab_project/projects')
-rw-r--r-- | sublab_project/projects/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sublab_project/projects/models.py b/sublab_project/projects/models.py index f164956..b343f98 100644 --- a/sublab_project/projects/models.py +++ b/sublab_project/projects/models.py @@ -3,6 +3,8 @@ import datetime from django.contrib.auth.models import User from django.db import models +from utils import render_creole + class Project(models.Model): """A project. @@ -24,4 +26,5 @@ class Project(models.Model): if not self.id: self.date_created = datetime.datetime.now() self.date_updated = datetime.datetime.now() + self.description_html = render_creole(self.description) return super(Project, self).save(*args, **kwargs) |