Django apps as well as third-party apps come with their own administration settings; however, there is a mechanism to switch these settings off and use your own better administration settings. In this recipe, you will learn how to exchange the administration settings for the django.contrib.auth
app with custom administration settings.
Insert the following content in the new admin.py
file in the custom_admin
app:
# custom_admin/admin.py # -*- coding: UTF-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.admin import UserAdmin, GroupAdmin from django.contrib.auth.admin import User, Group from django.utils.translation import ugettext_lazy as _ from django.core.urlresolvers import reverse from django.contrib.contenttypes.models import ContentType class UserAdminExtended(UserAdmin): list_display...