From 46a51a99cc9d1839b622252a4cb0b4cd1d0c50e4 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 28 Dec 2012 09:35:47 -0600 Subject: 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 --- todolists/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'todolists/models.py') 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() -- cgit v1.2.3-2-g168b