summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-04-22 15:58:53 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2012-04-22 15:58:53 +0000
commitbc8b9bd438d0b8f68ef14a5ecc81326fd7447edf (patch)
tree26c86545608846694544038d2121ca0fd64759cb /docs
parente7d648d8cbea71b7d9ffd6f0f7b2bfea3dbdf245 (diff)
Fixed #18159 -- added an import statement to the docs. Thanks to Jeff Hui for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/http/shortcuts.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index 9c05c6e5e9..2185d5497f 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -181,6 +181,8 @@ You can use the :func:`redirect` function in a number of ways.
:meth:`~django.db.models.Model.get_absolute_url` method will be called
to figure out the redirect URL::
+ from django.shortcuts import redirect
+
def my_view(request):
...
object = MyModel.objects.get(...)