X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/deb806113c76384876cd4969dc20c1e76ddabfef..a169ba7caa0d9d83fddcbad5ed05f536e0ca1b9e:/src/social/models.py diff --git a/src/social/models.py b/src/social/models.py index c6a1815bf..588b2eb8e 100644 --- a/src/social/models.py +++ b/src/social/models.py @@ -57,8 +57,8 @@ class Cite(models.Model): class Meta: ordering = ('vip', 'text') - verbose_name = _('cite') - verbose_name_plural = _('cites') + verbose_name = _('banner') + verbose_name_plural = _('banners') def __str__(self): return u"%s: %s…" % (self.vip, self.text[:60]) @@ -95,10 +95,10 @@ class Carousel(models.Model): return self.slug class CarouselItem(models.Model): - order = models.PositiveSmallIntegerField(unique=True) - carousel = models.ForeignKey(Carousel, models.CASCADE) - banner = models.ForeignKey(Cite, models.CASCADE, null=True, blank=True) - banner_group = models.ForeignKey(BannerGroup, models.CASCADE, null=True, blank=True) + order = models.PositiveSmallIntegerField(_('order'), unique=True) + carousel = models.ForeignKey(Carousel, models.CASCADE, verbose_name=_('carousel')) + banner = models.ForeignKey(Cite, models.CASCADE, null=True, blank=True, verbose_name=_('banner')) + banner_group = models.ForeignKey(BannerGroup, models.CASCADE, null=True, blank=True, verbose_name=_('banner group')) class Meta: ordering = ('order',)