Skip to content

Commit

Permalink
Fixed #14798 - Clarified redirects of generic views - thanks OldTroll.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
timgraham committed Nov 28, 2010
1 parent b31a956 commit 7a81ac5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ref/generic-views.txt
Expand Up @@ -987,7 +987,8 @@ model class.
``False``. ``False``.


If this is ``True``, and a non-logged-in user attempts to visit this page If this is ``True``, and a non-logged-in user attempts to visit this page
or save the form, Django will redirect the request to ``/accounts/login/``. or save the form, Django will redirect to :setting:`LOGIN_URL` (which
defaults to ``/accounts/login/``).


* ``template_name``: The full name of a template to use in rendering the * ``template_name``: The full name of a template to use in rendering the
page. This lets you override the default template name (see below). page. This lets you override the default template name (see below).
Expand Down Expand Up @@ -1069,7 +1070,8 @@ contain a form that POSTs to the same URL.
``False``. ``False``.


If this is ``True``, and a non-logged-in user attempts to visit this page If this is ``True``, and a non-logged-in user attempts to visit this page
or save the form, Django will redirect the request to ``/accounts/login/``. or save the form, Django will redirect to :setting:`LOGIN_URL` (which
defaults to ``/accounts/login/``).


* ``template_name``: The full name of a template to use in rendering the * ``template_name``: The full name of a template to use in rendering the
page. This lets you override the default template name (see below). page. This lets you override the default template name (see below).
Expand Down

0 comments on commit 7a81ac5

Please sign in to comment.