Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr attr If UnaryOpNot Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body If UnaryOpNot CompareIn AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr attr body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If Call NameLoad NameLoad body If CompareGt Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Num body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list
N/A N/A inspect django.core.exceptions ValidationError django.db models django.contrib.contenttypes.models ContentType exceptions NonexistentFieldName exceptions RulesError RulePermission N/A N/A models Model N/A N/A 
    This model holds the rules for the authorization system
     N/A codename N/A N/A models CharField primary_key True max_length 30 N/A field_name N/A N/A models CharField max_length 30 N/A content_type N/A N/A models ForeignKey ContentType N/A view_param_pk N/A N/A models CharField max_length 30 N/A description N/A N/A models CharField max_length 140 null True save N/A N/A self N/A args kwargs N/A N/A 
        Validates that the field_name exists in the content_type model
        raises ValidationError if it doesn't. We need to restrict security rules creation
         N/A N/A N/A self field_name N/A N/A N/A self field_name N/A self codename N/A N/A N/A self view_param_pk N/A N/A N/A self view_param_pk N/A N/A N/A N/A N/A N/A N/A self content_type model_class _meta pk get_attname N/A N/A N/A hasattr N/A N/A N/A self content_type model_class N/A self field_name N/A N/A N/A N/A N/A self field_name N/A N/A N/A N/A N/A N/A self content_type model_class _meta get_all_field_names N/A N/A N/A NonexistentFieldName N/A Could not create rule: field_name %s of rule %s does not exist in model %s N/A N/A self field_name N/A self codename N/A N/A self content_type model N/A N/A bound_field N/A getattr N/A N/A N/A self content_type model_class N/A self field_name N/A N/A callable bound_field N/A N/A N/A N/A len N/A N/A N/A inspect getargspec bound_field N/A 0 2 N/A N/A N/A RulesError N/A method %s from rule %s in model %s has too many parameters. N/A N/A self field_name N/A self codename N/A N/A self content_type model N/A N/A N/A N/A super RulePermission self save args kwargs N/A N/A