1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 00:42:50 +02:00

The health sheet is required only for children

This commit is contained in:
Yohann D'ANELLO
2021-01-21 21:55:19 +01:00
parent ae520f791c
commit 72fe279f15
8 changed files with 50 additions and 25 deletions

View File

@ -146,13 +146,6 @@ class ParticipantRegistration(Registration):
default="",
)
health_sheet = models.FileField(
verbose_name=_("health sheet"),
upload_to=get_random_health_filename,
blank=True,
default="",
)
@property
def under_18(self):
return (timezone.now().date() - self.birth_date).days < 18 * 365.24
@ -208,6 +201,13 @@ class StudentRegistration(ParticipantRegistration):
default="",
)
health_sheet = models.FileField(
verbose_name=_("health sheet"),
upload_to=get_random_health_filename,
blank=True,
default="",
)
@property
def type(self):
return _("student")