описание

This commit is contained in:
iriska-gri committed 2024-03-18 14:20:06 +03:00
1 parent be880402ea
commit 3b9e647ddc
1115 files changed
+90 -931

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
from django.contrib import admin
from .models import *
from django.db.models import Q
# Register your models here.
class DictEmployeeAdmin(admin.ModelAdmin):
# A handy constant for the name of the alternate database.
# using = "user_directory"
list_display=('fio', 'login', 'birthdate')
search_fields = ('login', 'fio',)
list_editable=('birthdate',)
# class DictEmployeeAdmin(admin.ModelAdmin):
admin.site.register(DictEmployee,DictEmployeeAdmin)