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

Add vaccine sheet field, closes #18

This commit is contained in:
Emmy D'Anello
2023-02-20 00:38:57 +01:00
parent fae4ee7105
commit 0f2c44331c
12 changed files with 337 additions and 148 deletions

View File

@ -108,6 +108,10 @@ def get_random_health_filename(instance, filename):
return "authorization/health/" + get_random_string(64)
def get_random_vaccine_filename(instance, filename):
return "authorization/vaccine/" + get_random_string(64)
def get_random_parental_filename(instance, filename):
return "authorization/parental/" + get_random_string(64)
@ -242,6 +246,13 @@ class StudentRegistration(ParticipantRegistration):
default="",
)
vaccine_sheet = models.FileField(
verbose_name=_("vaccine sheet"),
upload_to=get_random_vaccine_filename,
blank=True,
default="",
)
@property
def type(self):
return _("student")