Fixed #31034 -- Added a navigation sidebar to the admin.

Co-authored-by: elky <elky@users.noreply.github.com>
Co-authored-by: Goetz <goetz.buerkle@gmail.com>
This commit is contained in:
Tom Carrick 2020-05-06 10:29:51 +02:00 committed by Mariusz Felisiak
parent d6aff369ad
commit d24ba1be7a
17 changed files with 337 additions and 44 deletions

View file

@ -2841,6 +2841,13 @@ Templates can override or extend base admin templates as described in
setting an ``empty_value_display`` attribute on the field. See
:attr:`ModelAdmin.empty_value_display` for examples.
.. attribute:: AdminSite.enable_nav_sidebar
.. versionadded:: 3.1
A boolean value that determines whether to show the navigation sidebar
on larger screens. By default, it is set to ``True``.
.. attribute:: AdminSite.login_template
Path to a custom template that will be used by the admin site login view.

View file

@ -92,6 +92,10 @@ Minor features
* Filters in the right sidebar of the admin changelist view now contains a link
to clear all filters.
* 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 :attr:`.AdminSite.enable_nav_sidebar` to ``False``.
* ``XRegExp`` is upgraded from version 2.0.0 to 3.2.0.
* jQuery is upgraded from version 3.4.1 to 3.5.1.