How it works...

The default user administration list looks similar to the following screenshot:

The default group administration list looks similar to the following screenshot:

In this recipe, we created two model admin classes, UserAdminExtended and GroupAdminExtended, which extend the contributed UserAdmin and GroupAdmin classes respectively, and overwrite some of the properties. Then, we unregistered the existing administration classes for the User and Group models, and registered the new, modified ones.

The following screenshot shows how the user administration will now look:

The modified user administration settings show more fields than the default settings in the
list view, add additional filters and ordering options, and show Submit buttons at the top of the editing form.

In the change list of the new group administration settings, we will display the users that are assigned to the specific groups. In the browser, this will look similar to the following screenshot:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.244.216