23.4 Configuring the Admin for the User Model

The PostAdmin was a very straightforward process. We first configured the list page and then used options to configure both the add and edit pages. Finally, we saw how to extend data displayed in the list view.

The UserAdmin is anything but straightforward. While the list page is very simple, our add and edit pages are problematic. In the case of our User model, we want these pages to be quite different, and by default, Django does not supply the tools to achieve this end. Even worse, we want to create a page to change passwords, causing us to take control of the UserAdmin’s more integral features. Once we have our pages for properly dealing with the User model, we will change our views to use inline ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.