class CiteAdmin(admin.ModelAdmin):
list_display = ['nonempty_text', 'created_at', 'sticky', 'vip', 'small', 'has_image']
list_filter = ['group']
+ readonly_fields = ['created_at']
fieldsets = (
- (None, {'fields': ('group', 'sticky')}),
+ (None, {'fields': ('group', 'sticky', 'created_at')}),
(_('Content'), {'fields': ('book', 'text', 'small', 'vip', 'link', 'video', 'picture', 'banner')}),
(
_('Background'),
admin.site.register(Cite, CiteAdmin)
-admin.site.register(BannerGroup)
+
+class BannerGroupAdmin(admin.ModelAdmin):
+ list_display = ['name', 'created_at']
+ fields = ['name', 'created_at']
+ readonly_fields = ['created_at']
+
+admin.site.register(BannerGroup, BannerGroupAdmin)
class CarouselItemInline(OrderableAdmin, admin.TabularInline):
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-03-18 13:38+0100\n"
+"POT-Creation-Date: 2019-03-18 13:48+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"
"|| n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 1.5.4\n"
-#: admin.py:15
+#: admin.py:16
msgid "Content"
msgstr "Zawartość"
-#: admin.py:17
+#: admin.py:18
msgid "Background"
msgstr "Obraz tła"
-#: admin.py:28 models.py:32
+#: admin.py:29 models.py:32
msgid "text"
msgstr "tekst"
-#: admin.py:32 models.py:44
+#: admin.py:33 models.py:44
msgid "image"
msgstr "obraz"
msgid "Sticky cites will take precedense."
msgstr "Przyklejone cytaty mają pierwszeństwo."
-#: models.py:41 models.py:100
+#: models.py:41 models.py:60 models.py:100
msgid "banner"
msgstr "banner"
msgid "group"
msgstr "grupa"
-#: models.py:60
-msgid "cite"
-msgstr "cytat"
-
#: models.py:61
-msgid "cites"
-msgstr "cytaty"
+msgid "banners"
+msgstr "bannery"
#: models.py:87
msgid "slug"
#: templates/social/sets_form.html:8
msgid "Remove from my shelf"
msgstr "Usuń z mojej półki"
+
+#~ msgid "cite"
+#~ msgstr "cytat"
+
+#~ msgid "cites"
+#~ msgstr "cytaty"
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])
<h1 id="site-name">{% trans "Site administration" %} - WolneLektury.pl</h1>
<p style="font-size: 11px;margin-top:-6px;">
<a href="/admin/chunks/chunk/promo/">promobox</a> |
- <a href="/admin/social/cite">cytaty</a> |
+ <a href="/admin/social/cite">bannery</a> |
<a href="/admin/infopages/infopage/">info</a> |
<a href="/admin/catalogue/book/">książki</a> |
<a href="/admin/catalogue/tag/">tagi</a> |