Добавлена возможность выбора категории из спика

This commit is contained in:
Alex committed 2024-01-15 11:45:47 +03:00
1 parent ff92bca09c
commit 5e6be9a50f
2 files changed
+10 -1

No files matched your search

+2
View File
@@ -3,6 +3,8 @@ from django.contrib import admin
from .models import SafetyFile
# Register your models here.
class SafetyFileAdmin(admin.ModelAdmin):
list_display = ('name_chapter', 'date_file', 'document_category', 'file_document')
list_editable = ('date_file', 'document_category')