diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-06 00:06:51 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-08-06 00:06:51 -0600 |
commit | 004317994057a974e36dab450f388005386bf209 (patch) | |
tree | a1ec58537152d28a783bcb349c151f4d1e336171 /todolists/models.py | |
parent | 4ec2197deab2f7df1cb94a6506fac9127b3ae414 (diff) | |
parent | d4731a373ca665d4547eb0e89cdf270d41c44243 (diff) |
Merge branch 'archweb-generic'
# Conflicts:
# public/tests.py
# templates/base.html
Diffstat (limited to 'todolists/models.py')
-rw-r--r-- | todolists/models.py | 4 |
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 |