From 7c92ddbd3c86d6aaa34abd4b2d3f12775801b50b Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 20 Sep 2010 15:48:02 -0500 Subject: Add migrations to populate the news slug and make it non-null These should get us all set to have more useful URLs for the news items. Signed-off-by: Dan McGee --- news/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'news/models.py') diff --git a/news/models.py b/news/models.py index 2d96c3d9..88794cbb 100644 --- a/news/models.py +++ b/news/models.py @@ -3,7 +3,7 @@ class News(models.Model): id = models.AutoField(primary_key=True) - slug = models.SlugField(max_length=255, null=True, unique=True) + slug = models.SlugField(max_length=255, unique=True) author = models.ForeignKey(User, related_name='news_author') postdate = models.DateTimeField("post date", auto_now_add=True, db_index=True) last_modified = models.DateTimeField(editable=False, -- cgit v1.2.3-54-g00ecf