X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e180be7cce99d59054b206a061386188c5652f02..ecd1f5bc214a8ba61b65d4d00a7e7d09a8c8fa3a:/src/social/admin.py?ds=inline diff --git a/src/social/admin.py b/src/social/admin.py old mode 100755 new mode 100644 index 01e60fa91..91ebcdba0 --- a/src/social/admin.py +++ b/src/social/admin.py @@ -22,7 +22,7 @@ class CiteAdmin(admin.ModelAdmin): list_display = ['nonempty_text', 'created_at', 'sticky', 'vip', 'small', 'has_image'] list_filter = ['group'] readonly_fields = ['created_at'] - raw_id_fields = ['book'] + autocomplete_fields = ['book'] fieldsets = ( (None, {'fields': ('group', 'sticky', 'created_at', 'book')}), (_('Content'), {'fields': ('link', 'vip', 'text', 'small')}), @@ -31,15 +31,12 @@ class CiteAdmin(admin.ModelAdmin): 'picture', 'picture_alt', 'picture_title', 'picture_author', 'picture_link', 'picture_license', 'picture_license_link' - - #'banner', )}), ( _('Background'), {'fields': ( ('background_plain', 'background_color'), - 'image', 'image_shift', - 'banner', + 'image', 'image_title', 'image_author', 'image_link', 'image_license', 'image_license_link' )}, @@ -75,6 +72,7 @@ class CarouselItemInline(OrderableAdmin, admin.TabularInline): class CarouselAdmin(admin.ModelAdmin): + list_display = ['placement', 'priority', 'language'] inlines = [CarouselItemInline]