models: Announce.category is mandatory

This commit is contained in:
Benjamin Dauvergne 2013-06-21 23:55:50 +02:00
parent 203e7fcf0c
commit 8b7300edc0
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Announce(models.Model):
creation_time = models.DateTimeField(_('creation time'), auto_now_add=True)
modification_time = models.DateTimeField(_('modification time'), auto_now=True)
category = models.ForeignKey('Category', verbose_name=_('category'), blank=True)
category = models.ForeignKey('Category', verbose_name=_('category'))
def __unicode__(self):
return u'{title} ({id}) at {modification_time}'.format(title=self.title,