From dcb0a9ae1ea2234d2edc914281e31d6a1b33191b 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 4dd3642..5567caf 100644 --- a/djangocms_alias/admin.py +++ b/djangocms_alias/admin.py @@ -202,7 +202,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(