Mercurial > public > sg101
diff gpp/news/models.py @ 240:1246a4f1ab4f
For #93: fix url scheme for the news application.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 15 Sep 2010 00:14:54 +0000 |
parents | 405468b8e3b9 |
children | d424b8bae71d |
line wrap: on
line diff
--- a/gpp/news/models.py Sun Sep 12 18:30:23 2010 +0000 +++ b/gpp/news/models.py Wed Sep 15 00:14:54 2010 +0000 @@ -10,7 +10,8 @@ class Category(models.Model): """News stories belong to categories""" - title = models.CharField(max_length = 64) + title = models.CharField(max_length=64) + slug = models.SlugField(max_length=64) icon = models.ImageField(upload_to='news/categories/', blank=True) def __unicode__(self):