summaryrefslogtreecommitdiff
path: root/todolists/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-28 09:35:47 -0600
committerDan McGee <dan@archlinux.org>2012-12-28 14:48:29 -0600
commit46a51a99cc9d1839b622252a4cb0b4cd1d0c50e4 (patch)
treea411b1f19248085fdf659f727d28d0f68324d373 /todolists/models.py
parente0e2e169ec316c5d3d687e2ca211f9298f3210ee (diff)
Add todolists slug field
This will be used to make more descriptive URLs for our todolists. The `null=True` bit will be removed once a data migration is added to add slugs to all previously created todolists. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/models.py')
-rw-r--r--todolists/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/todolists/models.py b/todolists/models.py
index d19ad92d..8ee4b5ce 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -16,6 +16,7 @@ class TodolistManager(models.Manager):
class Todolist(models.Model):
+ slug = models.SlugField(max_length=255, null=True, unique=True)
old_id = models.IntegerField(null=True, unique=True)
name = models.CharField(max_length=255)
description = models.TextField()