Package django :: Package contrib :: Package admin :: Package templatetags :: Module log :: Class DoGetAdminLog
[hide private]
[frames] | no frames]

Class DoGetAdminLog

source code

Populates a template variable with the admin log for the given criteria.

Usage:

   {% get_admin_log [limit] as [varname] for_user [context_var_containing_user_obj] %}

Examples:

   {% get_admin_log 10 as admin_log for_user 23 %}
   {% get_admin_log 10 as admin_log for_user user %}
   {% get_admin_log 10 as admin_log %}

Note that ``context_var_containing_user_obj`` can be a hard-coded integer (user ID) or the name of a template context variable containing the user object whose ID you want.

Instance Methods [hide private]
 
__init__(self, tag_name) source code
 
__call__(self, parser, token) source code