msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-18 13:30+0100\n"
+"POT-Creation-Date: 2019-03-18 13:38+0100\n"
"PO-Revision-Date: 2014-01-24 10:06+0100\n"
"Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgid "created at"
msgstr "utworzone"
-#: models.py:19
+#: models.py:19 models.py:101
msgid "banner group"
msgstr "grupa bannerów"
msgid "Sticky cites will take precedense."
msgstr "Przyklejone cytaty mają pierwszeństwo."
-#: models.py:41
+#: models.py:41 models.py:100
msgid "banner"
msgstr "banner"
msgid "slug"
msgstr "slug"
-#: models.py:91
+#: models.py:91 models.py:99
msgid "carousel"
msgstr "karuzela"
msgid "carousels"
msgstr "karuzele"
-#: models.py:104
+#: models.py:98
+msgid "order"
+msgstr "kolejność"
+
+#: models.py:106
msgid "carousel item"
msgstr "element karuzeli"
-#: models.py:105
+#: models.py:107
msgid "carousel items"
msgstr "elementy karuzeli"
-#: models.py:109 models.py:111
+#: models.py:114 models.py:116
msgid "Either banner or banner group is required."
msgstr "Proszę wskazać banner albo grupę bannerów."
--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.20 on 2019-03-18 12:39
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('social', '0006_legacy_group'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='carouselitem',
+ name='banner',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.Cite', verbose_name='banner'),
+ ),
+ migrations.AlterField(
+ model_name='carouselitem',
+ name='banner_group',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='social.BannerGroup', verbose_name='banner group'),
+ ),
+ migrations.AlterField(
+ model_name='carouselitem',
+ name='carousel',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='social.Carousel', verbose_name='carousel'),
+ ),
+ migrations.AlterField(
+ model_name='carouselitem',
+ name='order',
+ field=models.PositiveSmallIntegerField(unique=True, verbose_name='order'),
+ ),
+ ]
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',)