summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 208ea1a7..b6922680 100644
--- a/main/models.py
+++ b/main/models.py
@@ -367,6 +367,9 @@ class Todolist(models.Model):
class Meta:
db_table = 'todolists'
+ def get_absolute_url(self):
+ return '/todo/%i/' % self.id
+
class TodolistPkg(models.Model):
id = models.AutoField(primary_key=True)
list = models.ForeignKey('Todolist')