comparison 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
comparison
equal deleted inserted replaced
239:dcc929973bba 240:1246a4f1ab4f
8 from tagging.fields import TagField 8 from tagging.fields import TagField
9 9
10 10
11 class Category(models.Model): 11 class Category(models.Model):
12 """News stories belong to categories""" 12 """News stories belong to categories"""
13 title = models.CharField(max_length = 64) 13 title = models.CharField(max_length=64)
14 slug = models.SlugField(max_length=64)
14 icon = models.ImageField(upload_to='news/categories/', blank=True) 15 icon = models.ImageField(upload_to='news/categories/', blank=True)
15 16
16 def __unicode__(self): 17 def __unicode__(self):
17 return self.title 18 return self.title
18 19