mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
apply ruff rule DJ012
This commit is contained in:
@ -63,9 +63,7 @@ class Trombi(models.Model):
|
||||
comments_deadline = models.DateField(
|
||||
_("comments deadline"),
|
||||
default=date.today,
|
||||
help_text=_(
|
||||
"After this date, users won't be " "able to make comments anymore."
|
||||
),
|
||||
help_text=_("After this date, users won't be able to make comments anymore."),
|
||||
)
|
||||
max_chars = models.IntegerField(
|
||||
_("maximum characters"),
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user