Fix changeform_view() redirection to the child admin site.

This method is normally called from `add_view()` and `change_view()`.
However, some third party modules (such as django-reversion) call this
method directly. By redirecting those calls to the child admin, their
views also display the proper admin views.
This commit is contained in:
Diederik van der Boor
2016-02-17 14:49:40 +01:00
parent 65de1f74ab
commit 46e41a6c1c
2 changed files with 21 additions and 1 deletions
+9 -1
View File
@@ -1,6 +1,14 @@
Changelog
=========
Changes in git
--------------
* Fixed support for ``PolymorphicManager.from_queryset()`` for custom query sets.
* Fixed Django 1.7 ``changeform_view()`` redirection to the child admin site.
This fixes custom admin code that uses these views, such as django-reversion_'s ``revision_view()`` / ``recover_view()``.
Version 0.9 (2016-02-17)
------------------------
@@ -9,7 +17,7 @@ Version 0.9 (2016-02-17)
* Fix Django 1.9 handling of custom URLs.
The new change-URL redirect overlapped any custom URLs defined in the child admin.
* Fix Django 1.9 support in the admin.
* Fix missing ``history_view`` redirection to the child admin, which is important for django-reversion_ support.
* Fix missing ``history_view()`` redirection to the child admin, which is important for django-reversion_ support.
See the documentation for hints for :ref:`django-reversion-compare support <django-reversion-compare-support>`.