From 12814398db407160d2b02c56354ca45f341a523e Mon Sep 17 00:00:00 2001 From: Bryan Brancotte Date: Fri, 6 Sep 2024 14:04:37 +0200 Subject: [PATCH] uifix: remove br as useless and removing advantage of nested mark_safe --- cspreports/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cspreports/admin.py b/cspreports/admin.py index 5435ef2..989c47f 100644 --- a/cspreports/admin.py +++ b/cspreports/admin.py @@ -12,7 +12,7 @@ class CSPReportAdmin(admin.ModelAdmin): readonly_fields = ('created', 'modified', 'json_as_html') def json_as_html(self, instance): - return "
" + instance.json_as_html() + return instance.json_as_html() def document_uri(self, instance): return instance.data.get('csp-report', {}).get('document-uri')