Заливка
This commit is contained in:
1 parent
05f5cb60d6
commit
8bde57c40e
9 files changed
+27
-19
No files matched your search
@@ -22,9 +22,9 @@ class NewsAdmin(admin.ModelAdmin):
|
||||
get_html_photo.short_description="Превью изображения"
|
||||
|
||||
class CarouselsAdmin(admin.ModelAdmin):
|
||||
list_display=('title', 'cdate', 'enddate', 'get_html_photo', 'link','published', 'sender')
|
||||
list_display=('title', 'cdate', 'enddate', 'get_html_photo', 'link','published', 'sender', 'order')
|
||||
readonly_fields=('get_html_photo',)
|
||||
list_editable=('link','published', 'cdate', 'enddate', 'sender')
|
||||
list_editable=('link','published', 'cdate', 'enddate', 'sender', 'order')
|
||||
list_filter=('cdate', 'enddate','published')
|
||||
fields=(('title', 'sender'), 'published', 'text', ('cdate', 'enddate'), ('link','get_html_photo'))
|
||||
|
||||
@@ -43,8 +43,8 @@ class CarouselsAdmin(admin.ModelAdmin):
|
||||
get_html_photo.short_description="Изображение"
|
||||
|
||||
class BaseSenderAdmin(admin.ModelAdmin):
|
||||
list_display=('name', 'get_html_photo', 'img')
|
||||
list_editable=('img',)
|
||||
list_display=('name', 'get_html_photo', 'img', 'order')
|
||||
list_editable=('img', 'order')
|
||||
fields=('name', ('img', 'get_html_photo'))
|
||||
readonly_fields=('get_html_photo',)
|
||||
|
||||
|
||||
Reference in new issue
Block a user