Fix default promotion year
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
db936bf75a
commit
49551e88f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue