summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/class-based-views.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/class-based-views.txt b/docs/ref/class-based-views.txt
index 758763f845..28ce024483 100644
--- a/docs/ref/class-based-views.txt
+++ b/docs/ref/class-based-views.txt
@@ -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