summaryrefslogtreecommitdiffstats
path: root/news/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-20 22:48:02 +0200
committerDan McGee <dan@archlinux.org>2010-09-21 16:10:02 +0200
commit7c92ddbd3c86d6aaa34abd4b2d3f12775801b50b (patch)
tree2f3391ccbeb807e9fe70bdb90a778eae7141181f /news/models.py
parent190d0fc1543b3cf30c7050602c9a656065a237fe (diff)
downloadarchweb-7c92ddbd3c86d6aaa34abd4b2d3f12775801b50b.tar.gz
archweb-7c92ddbd3c86d6aaa34abd4b2d3f12775801b50b.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'news/models.py')
-rw-r--r--news/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news/models.py b/news/models.py
index 2d96c3d..88794cb 100644
--- a/news/models.py
+++ b/news/models.py
@@ -3,7 +3,7 @@ from django.contrib.auth.models import User
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,