mirror of https://gitlab.crans.org/bde/nk20
Fix default promotion year
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
db936bf75a
commit
49551e88f8
|
@ -74,7 +74,7 @@ class Profile(models.Model):
|
|||
|
||||
promotion = models.PositiveSmallIntegerField(
|
||||
null=True,
|
||||
default=datetime.date.today().year,
|
||||
default=datetime.date.today().year if datetime.date.today().month >= 8 else datetime.date.today().year - 1,
|
||||
verbose_name=_("promotion"),
|
||||
help_text=_("Year of entry to the school (None if not ENS student)"),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue