Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad Call NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad attr Assign AttributeStore NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot NameLoad body Return Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad Return Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str If BoolOpOr CompareNotEq Call NameLoad NameLoad Num CompareNotEq SubscriptLoad NameLoad Index Num Str CompareNotEq SubscriptLoad NameLoad Index Num Str body Raise Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpOr CompareNotEq SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num CompareNotIn SubscriptLoad NameLoad Index Num TupleLoad Str Str body Raise Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice Num Num Return Call NameLoad NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr
N/A N/A 
``django-guardian`` template tags. To use in a template just put the following
*load* tag inside a template::

    {% load guardian_tags %}

 __future__ unicode_literals django template django.contrib.auth.models Group AnonymousUser guardian.compat get_user_model guardian.exceptions NotUserNorGroup guardian.core ObjectPermissionChecker N/A register N/A N/A template Library ObjectPermissionsNode N/A N/A template Node N/A __init__ N/A N/A self for_whom obj context_var N/A N/A N/A N/A self for_whom N/A N/A template Variable for_whom N/A N/A self obj N/A N/A template Variable obj N/A N/A self context_var context_var N/A render N/A N/A self context N/A N/A N/A for_whom N/A N/A N/A self for_whom resolve context N/A N/A isinstance for_whom N/A get_user_model N/A N/A N/A self user for_whom N/A N/A self group None N/A N/A N/A isinstance for_whom AnonymousUser N/A N/A N/A self user N/A N/A N/A get_user_model get_anonymous N/A N/A self group None N/A N/A N/A isinstance for_whom Group N/A N/A N/A self user None N/A N/A self group for_whom N/A N/A N/A NotUserNorGroup N/A User or Group instance required (got %s) N/A for_whom __class__ N/A obj N/A N/A N/A self obj resolve context N/A N/A obj N/A N/A N/A check N/A ObjectPermissionChecker for_whom N/A perms N/A N/A check get_perms obj N/A N/A context N/A N/A self context_var perms N/A N/A N/A get_obj_perms N/A N/A parser token N/A N/A N/A 
    Returns a list of permissions (as ``codename`` strings) for a given
    ``user``/``group`` and ``obj`` (Model instance).

    Parses ``get_obj_perms`` tag which should be in format::

        {% get_obj_perms user/group for obj as "context_var" %}

    .. note::
       Make sure that you set and use those permissions in same template
       block (``{% block %}``).

    Example of usage (assuming ``flatpage`` and ``perm`` objects are
    available from *context*)::

        {% get_obj_perms request.user for flatpage as "flatpage_perms" %}

        {% if "delete_flatpage" in flatpage_perms %}
            <a href="/pages/delete?target={{ flatpage.url }}">Remove page</a>
        {% endif %}

    .. note::
       Please remember that superusers would always get full list of permissions
       for a given object.

    .. versionadded:: 1.2

    As of v1.2, passing ``None`` as ``obj`` for this template tag won't rise
    obfuscated exception and would return empty permissions set instead.

     N/A bits N/A N/A token split_contents N/A format {% get_obj_perms user/group for obj as "context_var" %} N/A N/A N/A N/A len bits 6 N/A N/A bits N/A 2 for N/A N/A bits N/A 4 as N/A N/A N/A N/A template TemplateSyntaxError N/A get_obj_perms tag should be in format: %s format N/A for_whom N/A bits N/A 1 N/A obj N/A bits N/A 3 N/A context_var N/A bits N/A 5 N/A N/A N/A N/A context_var N/A 0 N/A context_var N/A -1 N/A N/A context_var N/A 0 N/A " ' N/A N/A N/A N/A template TemplateSyntaxError get_obj_perms tag's context_var argument should be in quotes N/A context_var N/A context_var N/A 1 -1 N/A N/A ObjectPermissionsNode for_whom obj context_var N/A N/A register tag