работа с админкой

This commit is contained in:
Alex committed 2023-10-09 17:22:07 +03:00
1 parent 80c74fd133
commit 8c382abcfd
4 files changed
+32 -16

No files matched your search

+2 -1
View File
@@ -3,7 +3,8 @@ from .models import *
# Register your models here.
class UserAdmin(admin.ModelAdmin):
list_display=('username','fio',)
list_display=('username','fio', 'created_at', 'updated_at', 'is_active', 'is_staff')
search_fields = ('username',)