Skip to content

Commit

Permalink
format_html, mark_safe, translations
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Jan 22, 2025
1 parent 39dc9aa commit d3f89de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edc_consent/modeladmin_mixins/consent_model_admin_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ def queries(self, obj=None) -> str:
formatted_html = format_html(
'<BR>{links}<BR><A title="New query" href="{new_url}">Add query</A>',
links=mark_safe("<BR>".join(links)), # nosec B703 B308
new_url=new_url,
new_url=mark_safe(new_url), # nosec B703 B308
)
else:
formatted_html = format_html(
'<A title="New query" href="{new_url}?"'
'subject_identifier={subject_identifier}">Add query</A>',
new_url=new_url,
new_url=mark_safe(new_url), # nosec B703 B308
subject_identifier=obj.subject_identifier,
)
return formatted_html
Expand Down

0 comments on commit d3f89de

Please sign in to comment.