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] authored and marksweb committed Feb 13, 2024
1 parent 15dd3e7 commit dcb0a9a
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 @@ -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(
Expand Down

0 comments on commit dcb0a9a

Please sign in to comment.