Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #774 -- Fixed typos in docs/authentication.txt. Thanks, footles…

…s and jbennett

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a70c04d83ba029dd09adb6b0df8fb18292591b74 1 parent 91f1b08
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/authentication.txt
4 docs/authentication.txt
@@ -415,7 +415,7 @@ Thus, you can check permissions in template ``{% if %}`` statements::
<p>You don't have permission to do anything in the foo app.</p>
{% endif %}
-.. _template context:
+.. _template context:
@@ -458,7 +458,7 @@ a playlist::
# Create the playlist with the given songs.
# ...
request.user.add_message("Your playlist was added successfully.")
- return render_to_response("playlists/create", context_instance=DjangoContext)
+ return render_to_response("playlists/create", context_instance=DjangoContext(request))
When you use ``DjangoContext``, the currently logged-in user and his/her
messages are made available in the `template context`_ as the template variable

0 comments on commit a70c04d

Please sign in to comment.
Something went wrong with that request. Please try again.