[1.8.x] Fixed syntax highlighting in docs/topics/auth/default.txt

Backport of 3e132406e3 from master
This commit is contained in:
Tim Graham 2015-03-28 07:49:03 -04:00
parent 6f69e77a9e
commit b0846a040e
1 changed files with 4 additions and 0 deletions

View File

@ -311,8 +311,10 @@ You can tell them apart with
if request.user.is_authenticated():
# Do something for authenticated users.
...
else:
# Do something for anonymous users.
...
.. _how-to-log-a-user-in:
@ -349,8 +351,10 @@ If you have an authenticated user you want to attach to the current session
# Redirect to a success page.
else:
# Return a 'disabled account' error message
...
else:
# Return an 'invalid login' error message.
...
.. admonition:: Calling ``authenticate()`` first