Merge branch 'main' into dk/2960-domain-invitations-updates

This commit is contained in:
David Kennedy 2025-01-15 08:06:25 -05:00
commit 30d258c0af
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -2827,7 +2827,9 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
try:
# 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
for log_entry in audit_log_entries: