Remove endpoint for email content

We don't really need this. We can just store the email content on the DOM. There is no real performance impact -- its not a lot of content in the grand scheme of things and we'd just be doing a lot of api calls anyway
This commit is contained in:
zandercymatics 2024-06-21 13:02:15 -06:00
parent 5ae8df2bdb
commit abc9fb78bc
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
7 changed files with 36 additions and 44 deletions

View file

@ -1845,6 +1845,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
# Initialize extra_context and add filtered entries
extra_context = extra_context or {}
extra_context["filtered_audit_log_entries"] = filtered_audit_log_entries
extra_context["action_needed_reason_emails"] = obj.get_all_action_needed_reason_emails_as_json()
# Call the superclass method with updated extra_context
return super().change_view(request, object_id, form_url, extra_context)