From ff1359050f686437b6078e2b12948674d2f7388f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 5 Jun 2015 08:15:32 -0500 Subject: Tweak display of todolist descriptions Indent, call out, and add some borders, among other things. Signed-off-by: Dan McGee --- todolists/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'todolists') 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 -- cgit v1.2.3