Skip to content

Commit

Permalink
The "permanent" parameter to redirect_to (r9594) is new in Django 1.1…
Browse files Browse the repository at this point in the history
…. Noted as

much in the docs.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Dec 9, 2008
1 parent 731f6be commit 80da07e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/ref/generic-views.txt
Expand Up @@ -136,6 +136,9 @@ If the given URL is ``None``, Django will return an ``HttpResponseGone`` (410).
redirect will use status code 301. If ``False``, then the redirect will redirect will use status code 301. If ``False``, then the redirect will
use status code 302. By default, ``permanent`` is ``True``. use status code 302. By default, ``permanent`` is ``True``.


.. versionadded:: 1.1
The ``permanent`` keyword argument is new in Django 1.1.

**Example:** **Example:**


This example issues a permanent redirect (HTTP status code 301) from This example issues a permanent redirect (HTTP status code 301) from
Expand Down

0 comments on commit 80da07e

Please sign in to comment.