summaryrefslogtreecommitdiff
path: root/todolists/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'todolists/models.py')
-rw-r--r--todolists/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/todolists/models.py b/todolists/models.py
index 59b14616..92ca5839 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -35,6 +35,10 @@ class Todolist(models.Model):
def __unicode__(self):
return self.name
+ @property
+ def stripped_description(self):
+ return self.description.strip()
+
def get_absolute_url(self):
return '/todo/%s/' % self.slug