diff --git a/edc_export/utils.py b/edc_export/utils.py
index 6e9ceba..99bf871 100644
--- a/edc_export/utils.py
+++ b/edc_export/utils.py
@@ -64,8 +64,8 @@ def raise_if_prohibited_from_export_pii_group(username: str, groups: Iterable) -
{
"groups": format_html(
"This user is not allowed to export PII data. You may not add "
- "this user to the {} group.",
- "EXPORT_PII",
+ "this user to the {text} group.",
+ text="EXPORT_PII",
)
}
)
diff --git a/edc_export/views/export_selected_models_view.py b/edc_export/views/export_selected_models_view.py
index 70f7c42..2baab48 100644
--- a/edc_export/views/export_selected_models_view.py
+++ b/edc_export/views/export_selected_models_view.py
@@ -58,9 +58,9 @@ def post(self, request: WSGIRequest, *args, **kwargs) -> HttpResponseRedirect:
request,
format_html(
"Your account does not include an email address. "
- 'Please update your user account '
+ 'Please update your user account '
"and try again.",
- mark_safe(user_url), # nosec B308 B703
+ user_url=mark_safe(user_url), # nosec B308 B703
),
)
else: