Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1834 -- Added docstrings to admin template tags. Thanks, ubern…

…ostrum

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 47d18514b07fa59ea8b092eb319f6fd60a502ec7 1 parent a8455bb
Adrian Holovaty authored May 16, 2006
11  django/contrib/admin/templatetags/adminapplist.py
@@ -53,7 +53,16 @@ def render(self, context):
53 53
 
54 54
 def get_admin_app_list(parser, token):
55 55
     """
56  
-    {% get_admin_app_list as app_list %}
  56
+    Returns a list of installed applications and models for which the current user
  57
+    has at least one permission.
  58
+
  59
+    Syntax::
  60
+    
  61
+        {% get_admin_app_list as [context_var_containing_app_list] %}
  62
+
  63
+    Example usage::
  64
+
  65
+        {% get_admin_app_list as admin_app_list %}
57 66
     """
58 67
     tokens = token.contents.split()
59 68
     if len(tokens) < 3:
3  django/contrib/admin/templatetags/adminmedia.py
@@ -3,6 +3,9 @@
3 3
 register = Library()
4 4
 
5 5
 def admin_media_prefix():
  6
+    """
  7
+    Returns the string contained in the setting ADMIN_MEDIA_PREFIX.
  8
+    """
6 9
     try:
7 10
         from django.conf import settings
8 11
     except ImportError:

0 notes on commit 47d1851

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