From 08cd6a0e56bac04e322388e7059072ad98db303c Mon Sep 17 00:00:00 2001 From: Markus Amalthea Magnuson Date: Sun, 3 Apr 2016 16:50:01 +0200 Subject: Fixed #16327 -- Redirected "Save as new" to change view instead of the changelist. --- docs/ref/contrib/admin/index.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 284d6aa62d..4f5cc22de1 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1146,6 +1146,16 @@ subclass:: By default, ``save_as`` is set to ``False``. +.. attribute:: ModelAdmin.save_as_continue + + .. versionadded:: 1.10 + + When :attr:`save_as=True `, the default redirect after saving the + new object is to the change view for that object. If you set + ``save_as_continue=False``, the redirect will be to the changelist view. + + By default, ``save_as_continue`` is set to ``True``. + .. attribute:: ModelAdmin.save_on_top Set ``save_on_top`` to add save buttons across the top of your admin change -- cgit v1.3