summaryrefslogtreecommitdiff
path: root/todolists/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-12-28 09:42:17 -0600
committerDan McGee <dan@archlinux.org>2012-12-28 14:48:29 -0600
commit1dc6b867f48786ab6973d6832f386c9d771b58e0 (patch)
tree761fb6350a1c2db5153fc573ca85467e14907a92 /todolists/models.py
parent46a51a99cc9d1839b622252a4cb0b4cd1d0c50e4 (diff)
Populate the todolist slug field and mark non-null
This is ripped off from commit 7c92ddbd3c86d when we added slugs to News objects. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/models.py')
-rw-r--r--todolists/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolists/models.py b/todolists/models.py
index 8ee4b5ce..a6dda2ab 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -16,7 +16,7 @@ class TodolistManager(models.Manager):
class Todolist(models.Model):
- slug = models.SlugField(max_length=255, null=True, unique=True)
+ slug = models.SlugField(max_length=255, unique=True)
old_id = models.IntegerField(null=True, unique=True)
name = models.CharField(max_length=255)
description = models.TextField()