From 016f122eec52f0030be6abe66ab8046478dd2c8f Mon Sep 17 00:00:00 2001 From: ! Date: Sat, 17 Aug 2024 16:46:15 +0200 Subject: [PATCH] Change school year to start on August 15th instead of August 1st --- mainsite/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mainsite/models.py b/mainsite/models.py index 76fba29..9145e4a 100644 --- a/mainsite/models.py +++ b/mainsite/models.py @@ -102,7 +102,7 @@ class Publication(models.Model): class PublicationYear(models.Model): startYear = IntegerField('Année de début', - help_text='Année scolaire à partir du 1/08', + help_text='Année scolaire à partir du 15/08', primary_key=True) descr = MarkdownxField("Accroche de l'année (Markdown)") @@ -111,11 +111,11 @@ class PublicationYear(models.Model): def beg(self): ''' First day of this publication year (incl.) ''' - return datetime.date(self.startYear, 8, 1) + return datetime.date(self.startYear, 8, 15) def end(self): ''' Last day of this publication year (excl.) ''' - return datetime.date(self.startYear + 1, 8, 1) + return datetime.date(self.startYear + 1, 8, 15) def inYear(self, date): return self.beg() <= date < self.end()