diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-08-02 19:59:51 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2005-08-02 19:59:51 +0000 |
| commit | ce0d0cd9e2cd5ac9850d825f28db39b1e123ac1e (patch) | |
| tree | a6590da388df9d4b78e78e2f60f804a8e6ce7608 /django/templatetags | |
| parent | ffc3edd79ee4abc7a22ea07f0660322f50306334 (diff) | |
Made a bunch of fixes to auto-generated admin documentation:
* Views are no longer "doubled"
* Links work better (view -> model links and friends were broken)
* Performance has been improved so now the pages no longer need to be cached.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@391 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/templatetags')
| -rw-r--r-- | django/templatetags/log.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/django/templatetags/log.py b/django/templatetags/log.py index 3f858fa1f8..564d8fbfa0 100644 --- a/django/templatetags/log.py +++ b/django/templatetags/log.py @@ -17,14 +17,20 @@ class AdminLogNode(template.Node): class DoGetAdminLog: """ Populates a template variable with the admin log for the given criteria. - Usage: + + Usage:: + {% get_admin_log [limit] as [varname] for_user [context_var_containing_user_obj] %} - Examples: + + 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. + + 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. """ def __init__(self, tag_name): self.tag_name = tag_name |
