djangodjango-admindjango-admin-tools

Django admin page layout changed with new version


I am working on an existing django project where admin console is extensively used. With my latest run of package upgrade for my application admin page layout has changed.

Models have started appearing on all the pages, leaving a small space to display form fields. For example this is how form page look like now: enter image description here

Original Form view was occupying the whole page like this: enter image description here

Any clue on what has been changed and which setting to change to get back the original view?


Solution

  • From the release notes,

    The admin now has a sidebar on larger screens for easier navigation. It is enabled by default but can be disabled by using a custom AdminSite and setting AdminSite.enable_nav_sidebar to False.

    You can refer Customizing the AdminSite class - (django doc) to know more about customizing the AdminSite