Module ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore NameLoad ClassDef bases body Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If BoolOpAnd UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad BinOpAdd Str NameLoad body If BoolOpAnd AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Return If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad BinOpMod Str NameLoad TryExcept body Expr Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr attr UnaryOpInvert Call NameLoad keyword AttributeLoad NameLoad attr attr body Raise Call NameLoad Str decorator_list decorator_list
N/A django.db models django.db.models Q django.core.exceptions ValidationError KeyValue N/A N/A models Model N/A N/A How this KeyValue class works:
        The KeyValue objects have functions that correspond to different
        keys. When a key is saved an attempt is made to find a validation
        function for that key.

        >>> attr = hasattr(kv, key)

        If `attr` is not None, then it is checked for callability.

        >>> attr = getattr(kv, key)
        >>> callable(attr)

        If it is callable, it is called with the value of the key.

        >>> kv.attr(kv.value)

        The validator is then free to raise exceptions if the value being
        inserted is invalid.

        When a validator for a key is not found, the KeyValue class can either
        riase an exception or not. This behavior is controled by the
        'force_validation' attribute: if 'force_validation' is 'True' and
        KeyValue requires a validation function. The 'require_validation' param
        to the clean method can be used to override the behavior of
        'force_validation'.

        Subclass this class and include a Foreign Key when needed.

        Validation functions can start with '_aa_'. 'aa' stands for auxililary
        attribute.
     N/A id N/A N/A models AutoField primary_key True N/A key N/A N/A models CharField max_length 255 N/A value N/A N/A models CharField max_length 255 N/A force_validation False Meta N/A N/A N/A abstract True N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A <{0}> format self N/A __str__ N/A N/A self N/A N/A N/A N/A N/A Key: {0} Value {1} format N/A self key N/A self value N/A uri N/A N/A self N/A N/A N/A N/A N/A /en-US/core/keyvalue/api/{0}/{1}/update/ format N/A N/A N/A N/A self __class__ __name__ lower N/A self pk N/A property get_absolute_url N/A N/A self N/A N/A N/A N/A N/A /en-US/core/keyvalue/{0}/{1}/ format N/A N/A N/A N/A self __class__ __name__ lower N/A N/A self obj pk N/A get_bundle N/A N/A self N/A N/A N/A N/A key value uri kv_pk obj_pk N/A self key N/A self value N/A self uri N/A self pk N/A N/A self obj pk N/A clean N/A N/A self require_validation check_unique N/A True True N/A N/A key_attr N/A N/A N/A self key replace - _ N/A N/A N/A N/A hasattr self key_attr N/A N/A hasattr self N/A _aa_ key_attr N/A N/A N/A N/A self force_validation require_validation N/A N/A N/A ValidationError N/A No validator for key %s N/A self key N/A N/A check_unique N/A N/A N/A N/A self validate_unique N/A N/A N/A hasattr self key_attr N/A N/A validate N/A getattr self key_attr N/A N/A validate N/A getattr self N/A _aa_ key_attr N/A N/A N/A callable validate N/A N/A N/A ValidationError N/A No validator for key %s not callable key_attr N/A N/A N/A N/A validate N/A N/A N/A TypeError N/A e N/A N/A N/A ValidationError N/A %s N/A str e N/A check_unique N/A N/A N/A N/A self validate_unique N/A validate_unique N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A self __class__ objects filter key N/A self key value N/A self value obj N/A self obj filter N/A N/A Q id N/A self pk exists N/A N/A N/A ValidationError A key with this value already exists. N/A N/A