mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #6903 - Preserve admin changelist filters after saving or deleting an object
This commit is contained in:
parent
2c4fe761a0
commit
c86a9b6398
14 changed files with 317 additions and 42 deletions
|
@ -870,6 +870,14 @@ subclass::
|
|||
``prepopulated_fields`` doesn't accept ``DateTimeField``, ``ForeignKey``,
|
||||
nor ``ManyToManyField`` fields.
|
||||
|
||||
.. attribute:: ModelAdmin.preserve_filters
|
||||
|
||||
.. versionadded:: 1.6
|
||||
|
||||
The admin now preserves filters on the list view after creating, editing
|
||||
or deleting an object. You can restore the previous behavior of clearing
|
||||
filters by setting this attribute to ``False``.
|
||||
|
||||
.. attribute:: ModelAdmin.radio_fields
|
||||
|
||||
By default, Django's admin uses a select-box interface (<select>) for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue