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(