From 8f5a75f6e7ba2b86edd055fe08fc3b9f1cab2d67 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 12 Feb 2024 09:48:59 +0000 Subject: [PATCH] ci: auto fixes from pre-commit hooks for more information, see https://pre-commit.ci --- djangocms_alias/admin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/djangocms_alias/admin.py b/djangocms_alias/admin.py index 12f0e87..e748520 100644 --- a/djangocms_alias/admin.py +++ b/djangocms_alias/admin.py @@ -205,7 +205,9 @@ def has_module_permission(self, request: HttpRequest) -> bool: def delete_model(self, request: HttpRequest, obj: AliasContent): if obj.alias._default_manager.filter(language=obj.language).count() == 1: - message = _("Alias content for language {} deleted. A new empty alias content will be created if needed.").format(obj.language) + message = _( + "Alias content for language {} deleted. A new empty alias content will be created if needed." + ).format(obj.language) self.message_user(request, message, level=messages.WARNING) return super().delete_model(