class CiteAdmin(admin.ModelAdmin):
list_display = ['nonempty_text', 'sticky', 'vip', 'small', 'has_image']
fieldsets = (
- (None, {'fields': ('book', 'text', 'small', 'vip', 'link', 'sticky')}),
+ (None, {'fields': ('book', 'text', 'small', 'vip', 'link', 'sticky', 'banner')}),
(
_('Background'),
- {'fields': ('image', 'image_shift', 'image_title', 'image_author',
- 'image_link', 'image_license', 'image_license_link')
- }
- )
+ {'fields': (
+ 'image', 'image_shift', 'image_title', 'image_author',
+ 'image_link', 'image_license', 'image_license_link')},
+ )
)
def nonempty_text(self, cite):