apply ruff rule DJ012

This commit is contained in:
imperosol
2025-03-09 15:05:10 +01:00
parent d10393ea37
commit bba5339407
7 changed files with 35 additions and 40 deletions

View File

@ -479,10 +479,7 @@ class TrombiCommentFormView(LoginRequiredMixin, View):
)
if self.trombi.comments_deadline < date.today():
raise Http404(
_(
"You can not write comment anymore, the deadline is "
"already passed."
)
_("You can not write comment anymore, the deadline is already passed.")
)
return modelform_factory(
self.model,