Module Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Str orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Num keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr attr Num keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign AttributeStore NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore Call NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr keyword Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num keyword Str decorator_list decorator_list
N/A N/A datetime django.contrib.auth.models User AnonymousUser django.core.exceptions ValidationError django.db.models.signals pre_save django.http HttpResponse django.test TestCase RequestFactory auditlog.middleware AuditlogMiddleware auditlog.models LogEntry auditlog.registry auditlog auditlog_tests.models SimpleModel AltPrimaryKeyModel ProxyModel SimpleIncludeModel SimpleExcludeModel RelatedModel ManyRelatedModel AdditionalDataIncludedModel SimpleModelTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self obj N/A N/A N/A SimpleModel objects create text I am not difficult. N/A test_create N/A N/A self N/A N/A N/A Creation is logged correctly. N/A obj N/A self obj N/A N/A N/A self assertTrue N/A N/A N/A N/A obj history count 1 msg There is one log entry N/A N/A N/A history N/A N/A N/A obj history get N/A N/A N/A N/A N/A obj history DoesNotExist N/A N/A N/A N/A self assertTrue False Log entry exists N/A N/A N/A N/A self assertEqual N/A history action N/A N/A LogEntry Action CREATE msg Action is 'CREATE' N/A N/A N/A self assertEqual N/A history object_repr N/A str obj msg Representation is equal N/A test_update N/A N/A self N/A N/A N/A Updates are logged correctly. N/A obj N/A self obj N/A N/A obj boolean True N/A N/A N/A obj save N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A obj history filter action N/A N/A LogEntry Action UPDATE count 1 msg There is one log entry for 'UPDATE' N/A history N/A N/A N/A obj history get action N/A N/A LogEntry Action UPDATE N/A N/A N/A self assertJSONEqual N/A history changes {"boolean": ["False", "True"]} msg The change is correctly logged N/A test_delete N/A N/A self N/A N/A N/A Deletion is logged correctly. N/A obj N/A self obj N/A history N/A N/A N/A obj history latest N/A N/A N/A obj delete N/A N/A N/A self assertTrue N/A N/A N/A N/A N/A N/A LogEntry objects filter content_type N/A history content_type object_pk N/A history object_pk action N/A N/A LogEntry Action DELETE count 1 msg There is one log entry for 'DELETE' N/A test_recreate N/A N/A self N/A N/A N/A N/A N/A N/A N/A N/A SimpleModel objects all delete N/A N/A N/A self setUp N/A N/A N/A self test_create N/A N/A AltPrimaryKeyModelTest N/A SimpleModelTest N/A setUp N/A N/A self N/A N/A N/A N/A self obj N/A N/A N/A AltPrimaryKeyModel objects create key N/A str N/A N/A N/A datetime datetime now text I am strange. N/A N/A ProxyModelTest N/A SimpleModelTest N/A setUp N/A N/A self N/A N/A N/A N/A self obj N/A N/A N/A ProxyModel objects create text I am not what you think. N/A N/A ManyRelatedModelTest N/A TestCase N/A N/A 
    Test the behaviour of a many-to-many relationship.
     setUp N/A N/A self N/A N/A N/A N/A self obj N/A N/A N/A ManyRelatedModel objects create N/A N/A self rel_obj N/A N/A N/A ManyRelatedModel objects create N/A N/A N/A N/A N/A self obj related add N/A self rel_obj N/A test_related N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A LogEntry objects get_for_objects N/A N/A N/A N/A self obj related all count N/A N/A N/A N/A self rel_obj history count N/A N/A N/A self assertEqual N/A N/A N/A N/A N/A LogEntry objects get_for_objects N/A N/A N/A N/A self obj related all first N/A N/A N/A N/A self rel_obj history first N/A N/A MiddlewareTest N/A TestCase N/A N/A 
    Test the middleware responsible for connecting and disconnecting the signals used in automatic logging.
     setUp N/A N/A self N/A N/A N/A N/A self middleware N/A AuditlogMiddleware N/A N/A self factory N/A RequestFactory N/A N/A self user N/A N/A N/A User objects create_user username test email test@example.com password top_secret N/A test_request_anonymous N/A N/A self N/A N/A N/A No actor will be logged when a user is not logged in. N/A request N/A N/A N/A self factory get / N/A N/A request user N/A AnonymousUser N/A N/A N/A N/A self middleware process_request request N/A N/A N/A self assertFalse N/A N/A pre_save has_listeners LogEntry N/A N/A N/A N/A self middleware process_exception request None N/A test_request N/A N/A self N/A N/A N/A The actor will be logged when a user is logged in. N/A request N/A N/A N/A self factory get / N/A N/A request user N/A self user N/A N/A N/A N/A self middleware process_request request N/A N/A N/A self assertTrue N/A N/A pre_save has_listeners LogEntry N/A N/A N/A N/A self middleware process_exception request None N/A test_response N/A N/A self N/A N/A N/A The signal will be disconnected when the request is processed. N/A request N/A N/A N/A self factory get / N/A N/A request user N/A self user N/A N/A N/A N/A self middleware process_request request N/A N/A N/A self assertTrue N/A N/A pre_save has_listeners LogEntry N/A N/A N/A N/A self middleware process_response request N/A HttpResponse N/A N/A N/A self assertFalse N/A N/A pre_save has_listeners LogEntry N/A test_exception N/A N/A self N/A N/A N/A The signal will be disconnected when an exception is raised. N/A request N/A N/A N/A self factory get / N/A N/A request user N/A self user N/A N/A N/A N/A self middleware process_request request N/A N/A N/A self assertTrue N/A N/A pre_save has_listeners LogEntry N/A N/A N/A N/A self middleware process_exception request N/A ValidationError Test N/A N/A N/A self assertFalse N/A N/A pre_save has_listeners LogEntry N/A N/A SimpeIncludeModelTest N/A TestCase N/A N/A Log only changes in include_fields test_register_include_fields N/A N/A self N/A N/A N/A sim N/A SimpleIncludeModel label Include model text Looong text N/A N/A N/A sim save N/A N/A N/A self assertTrue N/A N/A N/A N/A sim history count 1 msg There is one log entry N/A N/A sim label Changed label N/A N/A N/A sim save N/A N/A N/A self assertTrue N/A N/A N/A N/A sim history count 2 msg There are two log entries N/A N/A sim text Short text N/A N/A N/A sim save N/A N/A N/A self assertTrue N/A N/A N/A N/A sim history count 2 msg There are two log entries N/A N/A SimpeExcludeModelTest N/A TestCase N/A N/A Log only changes that are not in exclude_fields test_register_exclude_fields N/A N/A self N/A N/A N/A sem N/A SimpleExcludeModel label Exclude model text Looong text N/A N/A N/A sem save N/A N/A N/A self assertTrue N/A N/A N/A N/A sem history count 1 msg There is one log entry N/A N/A sem label Changed label N/A N/A N/A sem save N/A N/A N/A self assertTrue N/A N/A N/A N/A sem history count 2 msg There are two log entries N/A N/A sem text Short text N/A N/A N/A sem save N/A N/A N/A self assertTrue N/A N/A N/A N/A sem history count 2 msg There are two log entries N/A N/A AdditionalDataModelTest N/A TestCase N/A N/A Log additional data if get_additional_data is defined in the model test_model_without_additional_data N/A N/A self N/A N/A N/A obj_wo_additional_data N/A N/A N/A SimpleModel objects create text No additional data N/A obj_log_entry N/A N/A N/A obj_wo_additional_data history get N/A N/A N/A self assertIsNone N/A obj_log_entry additional_data N/A test_model_with_additional_data N/A N/A self N/A N/A N/A related_model N/A N/A N/A SimpleModel objects create text Log my reference N/A obj_with_additional_data N/A AdditionalDataIncludedModel label Additional data to log entries related related_model N/A N/A N/A obj_with_additional_data save N/A N/A N/A self assertTrue N/A N/A N/A N/A obj_with_additional_data history count 1 msg There is 1 log entry N/A log_entry N/A N/A N/A obj_with_additional_data history get N/A N/A N/A self assertIsNotNone N/A log_entry additional_data N/A extra_data N/A log_entry additional_data N/A N/A N/A self assertTrue N/A N/A extra_data N/A related_model_text N/A related_model text msg Related model's text is logged N/A N/A N/A self assertTrue N/A N/A extra_data N/A related_model_id N/A related_model id msg Related model's id is logged N/A N/A UnregisterTest N/A TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A auditlog unregister SimpleModel N/A N/A self obj N/A N/A N/A SimpleModel objects create text No history N/A tearDown N/A N/A self N/A N/A N/A N/A N/A auditlog register SimpleModel N/A test_unregister_create N/A N/A self N/A N/A N/A Creation is not logged after unregistering. N/A obj N/A self obj N/A N/A N/A self assertTrue N/A N/A N/A N/A obj history count 0 msg There are no log entries N/A test_unregister_update N/A N/A self N/A N/A N/A Updates are not logged after unregistering. N/A obj N/A self obj N/A N/A obj boolean True N/A N/A N/A obj save N/A N/A N/A self assertTrue N/A N/A N/A N/A obj history count 0 msg There are no log entries N/A test_unregister_delete N/A N/A self N/A N/A N/A Deletion is not logged after unregistering. N/A obj N/A self obj N/A N/A N/A obj delete N/A N/A N/A self assertTrue N/A N/A N/A N/A LogEntry objects count 0 msg There are no log entries N/A N/A