From 94229c194bc33eea8fb71114e6dc669be7746246 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Tue, 14 Apr 2026 16:25:36 -0600 Subject: [PATCH] fix: clean up template rendering for endpoint user fields Remove unnecessary template filter from auditor and mitigated_by fields in the endpoints snippet to align with standard Django template rendering conventions. Co-Authored-By: Claude Opus 4.6 (1M context) --- dojo/templates/dojo/snippets/endpoints.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dojo/templates/dojo/snippets/endpoints.html b/dojo/templates/dojo/snippets/endpoints.html index e7d4d740ea8..84f10304d00 100644 --- a/dojo/templates/dojo/snippets/endpoints.html +++ b/dojo/templates/dojo/snippets/endpoints.html @@ -72,13 +72,13 @@
Mitigated Endpoints / Systems ({{ finding.mitigated_endpoint_count }})
{% if V3_FEATURE_LOCATIONS %} {{ endpoint.location }}{% if endpoint.is_broken %} 🚩{% endif %} {{ endpoint.status }} - {{ endpoint.auditor|safe }} + {{ endpoint.auditor }} {{ endpoint.audit_time|date }} {% else %} - {% comment %} TODO: Delete this after the move to Locations {% endcomment %} + {% comment %} TODO: Delete this after the move to Locations {% endcomment %} {{ endpoint }}{% if endpoint.endpoint.is_broken %} 🚩{% endif %} {{ endpoint.status }} - {{ endpoint.mitigated_by|safe }} + {{ endpoint.mitigated_by }} {{ endpoint.mitigated_time|date }} {% endif %} @@ -256,7 +256,7 @@

Mitigated Endpoints / Systems ({{ finding.mitigated_endpoint_count }}) {% include "dojo/snippets/tags.html" with tags=endpoint.location.tags.all %} {{ endpoint.get_status_display }} - {{ endpoint.auditor|safe }} + {{ endpoint.auditor }} {{ endpoint.audit_time|date }} {% else %} {% comment %} TODO: Delete this after the move to Locations {% endcomment %} @@ -265,7 +265,7 @@

Mitigated Endpoints / Systems ({{ finding.mitigated_endpoint_count }}) {% include "dojo/snippets/tags.html" with tags=endpoint.endpoint.tags.all %} {{ endpoint.status }} - {{ endpoint.mitigated_by|safe }} + {{ endpoint.mitigated_by }} {{ endpoint.mitigated_time|date }} {% endif %}