X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ce728e78bb55eb75753f40dc5cd0997a53e7dd27..2771fe804080eff6ba2c40684bdf290e646b9cf9:/migdal/models.py?ds=inline diff --git a/migdal/models.py b/migdal/models.py index 3e0a8a3..bce76e4 100644 --- a/migdal/models.py +++ b/migdal/models.py @@ -9,6 +9,7 @@ from migdal.helpers import add_translatable from migdal import app_settings + class Category(models.Model): taxonomy = models.CharField(_('taxonomy'), max_length=32, choices=app_settings.TAXONOMIES) @@ -41,7 +42,7 @@ class Entry(models.Model): help_text=_('Used only to display gravatar and send notifications.')) image = models.ImageField(_('image'), upload_to='entry/image/', null=True, blank=True) promo = models.BooleanField(_('promoted'), default=False) - categories = models.ManyToManyField(Category, null=True, blank=True) + categories = models.ManyToManyField(Category, null=True, blank=True, verbose_name=_('categories')) class Meta: verbose_name = _('entry')