Module ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Assign NameStore TupleLoad Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad BoolOpOr Call NameLoad AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Return Call NameLoad NameLoad orelse Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpOr Call NameLoad NameLoad Str Call NameLoad NameLoad NameLoad body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad orelse If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Dict Str Str Str Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad orelse If BoolOpOr Call NameLoad NameLoad Str Call NameLoad NameLoad NameLoad body TryExcept body Assign NameStore Dict Str Str Str Str Str Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str Call NameLoad NameLoad Str Str If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Dict ListLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword AttributeLoad NameLoad attr If NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad NameLoad If NameLoad body Assign NameStore Dict For NameStore NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Dict Str Str NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Dict ListLoad If NameLoad body For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad Call NameLoad NameLoad If NameLoad body For NameStore NameLoad body Assign NameStore Dict Str Str Str ListLoad ListLoad ListLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Dict For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Dict For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad If Call NameLoad ListLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str Str Call NameLoad NameLoad Call NameLoad Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr Call NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return BoolOpOr NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListComp BinOpMod Str Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore BinOpAdd Str Call AttributeLoad Str attr NameLoad Return BoolOpOr NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr keyword AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list
N/A django.utils simplejson json django.utils.translation ugettext _ django.utils.text get_text_list django.utils.encoding force_unicode django.db models django.db.models.query QuerySet django.db.models.fields.files FieldFile django.contrib.contenttypes.models ContentType django.forms model_to_dict django.core serializers django.core.files.uploadedfile TemporaryUploadedFile InMemoryUploadedFile audit_log.models AuditLogEntry CHANGE ADDITION DELETION django.conf settings N/A ALWAYS_EXCLUDED_FIELDS N/A password password1 password2 DELETE get_auditable_fields N/A N/A form N/A N/A N/A 
    Return a list of fields name, keeping away some fields such as password or sensible data.

    * if form has a Meta attribute: is_auditable == False, then return an empty list,
        otherwise: the form is considered as an auditable form.
    * if form has a Meta attribute: auditable_fields, then those fields are considered
        otherwise: all changed fields of the form are considered.
    * if form has a Meta attribute: no_auditable_fields, then those fields are excluded
        otherwise: all changed fields of the form are considered.
    * Always the fields listed in ALWAYS_EXCLUDED_FIELDS, are excluded from result.
     N/A is_auditable N/A getattr N/A N/A N/A form _meta model _meta is_auditable True N/A N/A is_auditable N/A form changed_data N/A N/A auditable_fields N/A set N/A form changed_data N/A explicit_auditable_fields N/A set N/A N/A getattr N/A form _meta auditable_fields None auditable_fields N/A explicit_non_auditable_fields N/A set N/A getattr N/A form _meta no_auditable_fields N/A N/A N/A N/A explicit_non_auditable_fields union N/A set ALWAYS_EXCLUDED_FIELDS N/A result N/A N/A N/A N/A auditable_fields intersection explicit_auditable_fields difference explicit_non_auditable_fields N/A N/A list result N/A N/A N/A N/A field_serializer N/A N/A field_value N/A N/A N/A 
    return the field value ready to be serialized.
    depending of the field type:
        QuerySet, foreign key, file field, image field, etc
     N/A N/A N/A hasattr field_value get_query_set N/A isinstance field_value QuerySet N/A N/A field_value N/A N/A model_to_dict m N/A m N/A N/A field_value all N/A N/A N/A isinstance field_value N/A models Model N/A N/A field_value N/A model_to_dict field_value N/A N/A k v N/A N/A field_value iteritems N/A N/A N/A field_value N/A k N/A field_serializer v N/A N/A N/A N/A isinstance field_value InMemoryUploadedFile N/A isinstance field_value TemporaryUploadedFile N/A N/A N/A N/A field_value N/A name size content_type charset encoding N/A getattr field_value name N/A getattr field_value size N/A getattr field_value content_type N/A getattr field_value charset N/A getattr field_value encoding N/A N/A N/A AttributeError N/A N/A field_value N/A force_unicode field_value N/A N/A N/A N/A hasattr field_value path N/A isinstance field_value FieldFile N/A N/A N/A N/A field_value N/A url path size content_type charset name encoding N/A getattr field_value url N/A getattr field_value path N/A getattr field_value size N/A getattr field_value content_type N/A getattr field_value charset N/A getattr field_value name N/A getattr field_value encoding N/A N/A field_value N/A path N/A N/A N/A field_value N/A path N/A N/A N/A N/A field_value N/A path split N/A settings MEDIA_ROOT N/A 1 N/A N/A N/A ValueError N/A N/A field_value N/A force_unicode field_value N/A N/A field_value N/A force_unicode field_value N/A field_value N/A collect_old_values N/A N/A obj form formsets as_json_string N/A None None False N/A N/A 
    Collect the "pre save" data into a JSON-compatible structure.
    returns something like this:
    {
        'form_data': {
            *** for each form field edited AND auditable ***
            '<field name 1>': <new field 1 value>,
            '<field name 2>': <new field 2 value>,
            ...
        },
        formsets_data: [
            *** for each formset ***
            {
                'related_name': '<object related model name>',
                'related_objects': [
                    {
                        'pk': related_object.pk,
                        'model': 'app_name.model_name',
                        'fields': {
                            '<field name X>': <new field value X>,
                            '<field name Y>': <new field value Y>,
                            '<field name Z>': <new field value Z>,
                            ...
                        },
                    },
                    ...
                ]
            },
            ...
        ]
    }
     N/A result N/A form_data formsets_data N/A N/A N/A unsaved_object N/A N/A N/A N/A obj __class__ objects get pk N/A obj pk N/A form N/A N/A field_name N/A get_auditable_fields form N/A N/A field_value N/A getattr unsaved_object field_name N/A N/A N/A result N/A form_data N/A field_name N/A field_serializer field_value N/A formsets N/A N/A model_related_objects N/A N/A formset formsets N/A N/A accessor_name N/A formset rel_name N/A related_objects N/A N/A N/A getattr unsaved_object accessor_name all N/A N/A model_related_objects N/A accessor_name related_objects N/A N/A related_name related_objects N/A N/A model_related_objects iteritems N/A N/A result_formset_data N/A related_name related_objects related_name N/A N/A model_to_dict r_obj N/A r_obj related_objects N/A N/A N/A N/A result N/A formsets_data append result_formset_data N/A as_json_string N/A N/A N/A N/A json dumps result N/A N/A result N/A collect_new_values N/A N/A form formsets as_json_string N/A None None False N/A N/A 
    Collect the "post save" data into a JSON-compatible structure.
    returns something like this:
    {
        'form_data': {
            '<field name 1>': <new field 1 value>,
            '<field name 2>': <new field 2 value>,
            ...
        },
        formsets_data: [
            # for each formset:
            {
                'added':[
                    {
                        'object_verbose_name': '<object verbose name>',
                        'object_unicode': '<object unicode>',
                        '<field name 1>': <new field 1 value>,
                        '<field name 2>': <new field 2 value>,
                    },
                    ...
                ],
                'changed': [
                    {
                        'object_verbose_name': '<object verbose name>',
                        'object_unicode': '<object unicode>',
                        '<field name X>': <new field X value>,
                        '<field name Y>': <new field Y value>,
                        '<field name Z>': <new field Z value>,
                    },
                    ...
                ],
                'deleted': [
                    {
                        'object_verbose_name': '<object verbose name>',
                        'object_unicode': '<object unicode>',
                    },
                    ...
                ]
            },
            ...
        ]
    }
     N/A result N/A form_data formsets_data N/A N/A N/A form N/A N/A field_name N/A get_auditable_fields form N/A N/A field_value N/A N/A form cleaned_data N/A field_name N/A N/A N/A result N/A form_data N/A field_name N/A field_serializer N/A field_serializer field_value N/A formsets N/A N/A formset formsets N/A N/A formset_data N/A added changed deleted N/A N/A N/A N/A added_data N/A N/A added_object N/A formset new_objects N/A N/A object_values N/A object_verbose_name object_unicode fields N/A force_unicode N/A N/A added_object _meta verbose_name N/A force_unicode added_object N/A N/A field N/A N/A added_object _meta local_fields N/A N/A field_name N/A N/A field get_attname N/A field_value N/A getattr added_object field_name N/A N/A N/A object_values N/A fields N/A field_name N/A field_serializer field_value N/A N/A N/A added_data append object_values N/A N/A formset_data N/A added added_data N/A changed_data N/A N/A N/A changed_object changed_fields N/A formset changed_objects N/A N/A object_values N/A object_verbose_name object_unicode fields N/A force_unicode N/A N/A changed_object _meta verbose_name N/A force_unicode changed_object N/A N/A field_name changed_fields N/A N/A field_value N/A getattr changed_object field_name N/A N/A N/A object_values N/A fields N/A field_name N/A field_serializer field_value N/A N/A N/A changed_data append object_values N/A N/A formset_data N/A changed changed_data N/A deleted_data N/A N/A deleted_object N/A formset deleted_objects N/A N/A object_values N/A object_verbose_name object_unicode N/A force_unicode N/A N/A deleted_object _meta verbose_name N/A force_unicode deleted_object N/A N/A N/A deleted_data append object_values N/A N/A formset_data N/A deleted deleted_data N/A N/A any N/A added_data changed_data deleted_data N/A N/A N/A N/A N/A result N/A formsets_data append formset_data N/A as_json_string N/A N/A N/A N/A json dumps result N/A N/A result N/A construct_message_from_formset N/A N/A formsets N/A N/A N/A message N/A N/A formset formsets N/A N/A added_object N/A formset new_objects N/A N/A N/A N/A message append N/A N/A _ Added %(name)s "%(object)s". N/A name object N/A force_unicode N/A N/A added_object _meta verbose_name N/A force_unicode added_object N/A N/A changed_object changed_fields N/A formset changed_objects N/A N/A N/A N/A message append N/A N/A _ Changed %(list)s for %(name)s "%(object)s". N/A list name object N/A get_text_list changed_fields N/A _ and N/A force_unicode N/A N/A changed_object _meta verbose_name N/A force_unicode changed_object N/A deleted_object N/A formset deleted_objects N/A N/A N/A N/A message append N/A N/A _ Deleted %(name)s "%(object)s". N/A name object N/A force_unicode N/A N/A deleted_object _meta verbose_name N/A force_unicode deleted_object N/A message N/A construct_change_message N/A N/A form formsets N/A None None N/A N/A 
    Construct a description text message with a brief explanation of the changes.
     N/A message N/A N/A N/A form N/A form changed_data N/A N/A N/A N/A message append N/A N/A _ Changed fields: %s. N/A get_text_list N/A form changed_data N/A _ and N/A formsets N/A N/A N/A N/A message extend N/A construct_message_from_formset formsets N/A message N/A N/A join message N/A N/A message N/A _ No fields changed. N/A construct_create_message N/A N/A form formsets N/A None None N/A N/A 
    Construct a "created record" data into a message from a new object.
     N/A message N/A N/A %s N/A force_unicode field N/A field N/A form cleaned_data form N/A formsets N/A N/A N/A N/A message extend N/A construct_message_from_formset formsets N/A message N/A Added fields:
 N/A N/A join message N/A N/A message N/A _ No fields added. N/A construct_delete_message N/A N/A obj N/A N/A N/A N/A Record DELETED (%s, pk: %s): %s N/A N/A obj pk N/A force_unicode N/A N/A obj _meta verbose_name N/A force_unicode obj N/A _do_log N/A N/A user obj action_flag change_message old_values new_values N/A N/A N/A N/A N/A N/A AuditLogEntry objects log_action user_id N/A user pk content_type_id N/A N/A N/A N/A ContentType objects get_for_model obj pk object_id N/A obj pk object_repr N/A force_unicode obj action_flag action_flag change_message change_message old_values old_values new_values new_values N/A log_delete N/A N/A user obj message N/A N/A N/A 
    Log that obj has been deleted.
     N/A N/A _do_log user obj DELETION message N/A log_change N/A N/A user obj message old_values new_values N/A N/A N/A 
    Log that obj has been changed.
     N/A N/A _do_log user obj CHANGE message old_values new_values N/A log_create N/A N/A user obj message old_values new_values N/A N/A N/A 
    Log that obj has been created.
     N/A N/A _do_log user obj ADDITION message old_values new_values N/A