mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #14803 -- Corrected an inconsistency in redirection handling between old-style generic views and class-based views. Thanks to gg for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ac91d5ef08
commit
324658ef26
5 changed files with 38 additions and 2 deletions
|
@ -481,6 +481,11 @@ ModelFormMixin
|
|||
|
||||
The URL to redirect to when the form is successfully processed.
|
||||
|
||||
``success_url`` may contain dictionary string formatting, which
|
||||
will be interpolated against the object's field attributes. For
|
||||
example, you could use ``success_url="/polls/%(slug)s/"`` to
|
||||
redirect to a URL composed out of the ``slug`` field on a model.
|
||||
|
||||
.. method:: get_form_class()
|
||||
|
||||
Retrieve the form class to instantiate. If
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue