Skip to content

Commit

Permalink
ci: auto fixes from pre-commit hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 328b466 commit 8f5a75f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion djangocms_alias/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8f5a75f

Please sign in to comment.