{% extends "base.html" %} {% load static %} {% block title %}Audit Log Detail - {{ audit_log.action }}{% endblock %} {% block content %}

Audit Log Detail

{{ audit_log.action }}
{{ audit_log.get_event_type_display }} | {{ audit_log.get_event_category_display }}
Timestamp

{{ audit_log.timestamp|date:"M d, Y g:i:s A" }}

{{ audit_log.timestamp|timesince }} ago
User

{% if audit_log.user %} {{ audit_log.user.get_full_name|default:audit_log.user.username }} {% else %} System {% endif %}

{% if audit_log.user %} {{ audit_log.user.email }} {% endif %}
Event Type

{{ audit_log.get_event_type_display }}

Category

{{ audit_log.get_event_category_display }}

Description
{{ audit_log.description }}
{% if audit_log.content_type %}
Affected Object

{{ audit_log.content_type.name|title }} {% if audit_log.object_id %} (ID: {{ audit_log.object_id }}) {% endif %}

{% endif %} {% if audit_log.data %}
Changed Data
{{ audit_log.data|pprint }}
{% endif %} {% if audit_log.ip_address %}
Request Information
{% if audit_log.user_agent %} {% endif %} {% if audit_log.request_method %} {% endif %} {% if audit_log.request_path %} {% endif %}
IP Address {{ audit_log.ip_address }}
User Agent {{ audit_log.user_agent }}
Request Method {{ audit_log.request_method }}
Request Path {{ audit_log.request_path }}
{% endif %}
Quick Actions
Back to Audit Logs {% if audit_log.content_type and audit_log.object_id %} {% endif %} {% if audit_log.event_type == 'UPDATE' %} {% endif %}
{% if related_logs %} {% endif %} {% if audit_log.tenant %}
Tenant Information
{{ audit_log.tenant.name|first|upper }}
{{ audit_log.tenant.name }}
{{ audit_log.tenant.get_organization_type_display }}
Status {% if audit_log.tenant.is_active %}Active{% else %}Inactive{% endif %}
{% endif %}
{% endblock %} {% block js %} {% endblock %}