Fixed #6903 - Preserve admin changelist filters after saving or deleting an object

This commit is contained in:
Loic Bistuer 2013-06-19 02:41:36 +07:00
parent 2c4fe761a0
commit c86a9b6398
14 changed files with 317 additions and 42 deletions

View file

@ -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