Skip to content

Instantly share code, notes, and snippets.

@muminoff
Created December 12, 2017 00:51
Show Gist options
  • Save muminoff/8bdcc440264cd3623523e31b335462d9 to your computer and use it in GitHub Desktop.
Save muminoff/8bdcc440264cd3623523e31b335462d9 to your computer and use it in GitHub Desktop.
from django.contrib import admin
from django.contrib.auth.models import User
class UserAdmin(admin.ModelAdmin):
fields = ('email', 'is_staff', 'is_superuser', 'is_active')
list_display = ('email', 'is_active', 'is_staff', 'is_superuser', 'date_joined',)
admin.site.register(User, UserAdmin)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment