Chapter 17. Customizing Models in the Admin Interface

What You’ll Learn in This Hour

  • How to customize fields displayed in the model change list
  • How to add search functionality to the model change list
  • How to filter objects in the model change list
  • How to implement a date hierarchy to navigate model change lists
  • How to customize model add and create forms so that they are easier to use
  • How to configure models that are linked by a foreign key so that they can be edited together inline in the admin interface

Until now we have neglected one of the shining features of Django, the admin interface. So far you have used the admin interface to create only users, permissions, and some objects. The admin interface is pretty intuitive right out of the box. ...

Get Sams Teach Yourself Django in 24 Hours 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.