Skip to content
Snippets Groups Projects
Commit 1ff058b8 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Apply suggestion to aleksis/core/models.py

parent bf877b2d
No related branches found
No related tags found
1 merge request!299Resolve "Link data to school term"
Pipeline #2619 failed
...@@ -73,7 +73,7 @@ class SchoolYear(ExtensibleModel): ...@@ -73,7 +73,7 @@ class SchoolYear(ExtensibleModel):
return cls.get_current() return cls.get_current()
def clean(self): def clean(self):
"""Ensure there is only one school year of each point of time.""" """Ensure there is only one school year at each point of time."""
if self.date_end < self.date_start: if self.date_end < self.date_start:
raise ValidationError(_("The start date must be earlier than the end date.")) raise ValidationError(_("The start date must be earlier than the end date."))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment