mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #24133 -- Removed legacy formatting syntax in success_url placeholders.
Per deprecation timeline.
This commit is contained in:
parent
b6e6fcf326
commit
6eed9ae747
4 changed files with 6 additions and 46 deletions
|
@ -160,12 +160,6 @@ ModelFormMixin
|
|||
example, you could use ``success_url="/polls/{slug}/"`` to
|
||||
redirect to a URL composed out of the ``slug`` field on a model.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
Support for the new brace-based Python formatting syntax has been
|
||||
added. The old ``%(slug)s`` placeholder syntax support has been
|
||||
deprecated and will be removed in Django 1.10.
|
||||
|
||||
.. method:: get_form_class()
|
||||
|
||||
Retrieve the form class to instantiate. If
|
||||
|
@ -259,12 +253,6 @@ DeletionMixin
|
|||
could use ``success_url="/parent/{parent_id}/"`` to redirect to a URL
|
||||
composed out of the ``parent_id`` field on a model.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
Support for the new brace-based Python formatting syntax has been
|
||||
added. The old ``%(slug)s`` placeholder syntax support has been
|
||||
deprecated and will be removed in Django 1.10.
|
||||
|
||||
.. method:: get_success_url()
|
||||
|
||||
Returns the url to redirect to when the nominated object has been
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue