описание
This commit is contained in:
1 parent
fe04812b8e
commit
8ebd15fdcd
825 files changed
+90
-535
No files matched your search
@@ -0,0 +1,15 @@
|
||||
from django.contrib import admin
|
||||
from .models import *
|
||||
# Register your models here.
|
||||
|
||||
class UserAdmin(admin.ModelAdmin):
|
||||
save_on_top = True
|
||||
list_display=('username','names', 'is_active', 'is_staff')
|
||||
search_fields = ('username',)
|
||||
ordering=('username',)
|
||||
|
||||
# fields=(('user', 'username'), 'is_active', 'is_staff', 'updated_at',)
|
||||
|
||||
|
||||
|
||||
admin.site.register(User, UserAdmin)
|
||||
Reference in new issue
Block a user