Галерея главного экрана
This commit is contained in:
1 parent
8f0172d43f
commit
02590ac627
7 files changed
+14
-30
No files matched your search
@@ -101,7 +101,8 @@ class BirthdayTextAdmin(admin.ModelAdmin):
|
||||
list_display = ('text',)
|
||||
|
||||
class ScreensaverAdmin(admin.ModelAdmin):
|
||||
list_display = ('get_html_photo', 'img', 'cdate')
|
||||
list_display = ('get_html_photo', 'img', 'cdate', 'enddate')
|
||||
list_editable=('img', 'cdate', 'enddate')
|
||||
readonly_fields=('get_html_photo',)
|
||||
|
||||
def get_html_photo(self, object):
|
||||
@@ -111,8 +112,6 @@ class ScreensaverAdmin(admin.ModelAdmin):
|
||||
get_html_photo.short_description="Превью изображения"
|
||||
|
||||
|
||||
class HolidaysAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'code')
|
||||
|
||||
|
||||
|
||||
@@ -127,4 +126,3 @@ admin.site.register(CommentNews, CommentNewsAdmin)
|
||||
admin.site.register(BirthdayImage, BirthdayImageAdmin)
|
||||
admin.site.register(BirthdayText, BirthdayTextAdmin)
|
||||
admin.site.register(Screensaver, ScreensaverAdmin)
|
||||
admin.site.register(Holidays, HolidaysAdmin)
|
||||
Reference in new issue
Block a user