mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-01-19 09:33:01 +08:00
12 lines
284 B
Python
12 lines
284 B
Python
|
from django.contrib import admin
|
||
|
from unfold.admin import ModelAdmin
|
||
|
|
||
|
from .models import Document
|
||
|
|
||
|
|
||
|
@admin.register(Document)
|
||
|
class DocumentAdmin(ModelAdmin):
|
||
|
model = Document
|
||
|
search_fields = ["id", "name", "document_type"]
|
||
|
list_display = ["id", "name", "document_type"]
|