Переверстка фронта в разделе Основная информация
This commit is contained in:
1 parent
d2143a8400
commit
81568e4300
4 files changed
+97
-73
No files matched your search
@@ -5,9 +5,9 @@ from .models import SafetyFile
|
||||
|
||||
|
||||
class SafetyFileAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'chapter_id', 'category_id', 'sign_date')
|
||||
list_editable = ('sign_date', 'category_id')
|
||||
list_display = ('name', 'chapter_id', 'category_id', 'sign_date', 'formainpage')
|
||||
list_editable = ('sign_date', 'category_id', 'formainpage')
|
||||
list_filter = ('name', 'sign_date', 'category_id',)
|
||||
fields = ('name', 'url', 'chapter_id', 'category_id', 'sign_date')
|
||||
fields = ('name', 'url', 'chapter_id', 'category_id', 'sign_date', 'formainpage')
|
||||
|
||||
admin.site.register(SafetyFile, SafetyFileAdmin)
|
||||
Reference in new issue
Block a user