diff options
author | Dan McGee <dan@archlinux.org> | 2010-09-20 15:48:02 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-09-21 09:10:02 -0500 |
commit | 7c92ddbd3c86d6aaa34abd4b2d3f12775801b50b (patch) | |
tree | 2f3391ccbeb807e9fe70bdb90a778eae7141181f /news/models.py | |
parent | 190d0fc1543b3cf30c7050602c9a656065a237fe (diff) |
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.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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, |