mirror of
https://github.com/django/django.git
synced 2025-09-13 14:06:28 +00:00
Fixed #16327 -- Redirected "Save as new" to change view instead of the changelist.
This commit is contained in:
parent
cb65e62c84
commit
08cd6a0e56
5 changed files with 48 additions and 2 deletions
|
@ -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 <save_as>`, 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue