mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-31 23:16:36 +02:00
fix auditlog errors
This commit is contained in:
parent
a0a53ea855
commit
de07b109c2
1 changed files with 4 additions and 2 deletions
|
@ -2782,7 +2782,9 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Retrieve and order audit log entries by timestamp in descending order
|
# Retrieve and order audit log entries by timestamp in descending order
|
||||||
audit_log_entries = LogEntry.objects.filter(object_id=object_id).order_by("-timestamp")
|
audit_log_entries = LogEntry.objects.filter(
|
||||||
|
object_id=object_id, content_type__model="domainrequest"
|
||||||
|
).order_by("-timestamp")
|
||||||
|
|
||||||
# Process each log entry to filter based on the change criteria
|
# Process each log entry to filter based on the change criteria
|
||||||
for log_entry in audit_log_entries:
|
for log_entry in audit_log_entries:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue