summaryrefslogtreecommitdiff
path: root/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2015-06-05 08:15:32 -0500
committerDan McGee <dan@archlinux.org>2015-06-05 08:28:30 -0500
commitff1359050f686437b6078e2b12948674d2f7388f (patch)
treee1683d25f76cdd09b949c023f11906422af7d5cc /todolists
parentbecb5b2356b384178002d9db6084547325ff7787 (diff)
Tweak display of todolist descriptions
Indent, call out, and add some borders, among other things. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-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