mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
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:
parent
d6aff369ad
commit
d24ba1be7a
17 changed files with 337 additions and 44 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue