18 lines
476 B
Python
18 lines
476 B
Python
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)
|