<reponame>setayeshmbr/coronavirus_blog<filename>account/admin.py
from django.contrib import admin

# Register your models here.
from django.contrib.auth.admin import UserAdmin

from account.models import User

# UserAdmin.fieldsets [2][1]['fields'] += ('is_author','special_user')
UserAdmin.fieldsets[2][1]['fields'] = (
    'is_active',
    'is_staff',
    'is_superuser',
    'is_author',
    'special_user',
    'groups',
    'user_permissions'
)
UserAdmin.list_display +=('is_author','is_special_user','is_superuser')

admin.site.register(User, UserAdmin)
