Django

Code

Changeset 3670

Show
Ignore:
Timestamp:
08/28/06 11:41:26 (2 years ago)
Author:
jacob
Message:

Fixed #2610 -- corrected documentation about the auth context processor (thanks, ubernostrum).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates_python.txt

    r3606 r3670  
    301301      logged-in user (or an ``AnonymousUser`` instance, if the client isn't 
    302302      logged in). See the `user authentication docs`. 
    303     * ``messages`` -- A list of ``auth.Message`` objects for the currently 
    304       logged-in user. 
    305     * ``perms`` -- An instance of ``django.core.context_processors.PermWrapper``, 
    306       representing the permissions that the currently logged-in user has. See 
    307       the `permissions docs`_. 
     303       
     304    * ``messages`` -- Returns a list of messages for the currently logged-in 
     305      user (set with ``user.add_message()``). Behind the scenes, this calls 
     306      ``request.user.get_and_delete_messages()``, which iterates over user's 
     307      messages and returns the actual message before deleting the ``Message`` 
     308      object. 
     309       
     310    * ``perms`` -- An instance of 
     311      ``django.core.context_processors.PermWrapper``, representing the 
     312      permissions that the currently logged-in user has. See the `permissions 
     313      docs`_. 
    308314 
    309315.. _user authentication docs: http://www.djangoproject.com/documentation/authentication/#users