описание
This commit is contained in:
1 parent
be880402ea
commit
3b9e647ddc
1115 files changed
+90
-931
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user