Minor BDS model updates wanted by the BDS staff
This commit is contained in:
parent
8ee173cd8c
commit
b32eb96fc7
2 changed files with 23 additions and 7 deletions
21
bds/migrations/0005_rm_ffsu_and_certificate.py
Normal file
21
bds/migrations/0005_rm_ffsu_and_certificate.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 2.2.12 on 2020-05-08 14:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("bds", "0004_is_member_cotiz_type"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(model_name="bdsprofile", name="FFSU_number",),
|
||||
migrations.AlterField(
|
||||
model_name="bdsprofile",
|
||||
name="certificate_file",
|
||||
field=models.BooleanField(
|
||||
default=False, verbose_name="fichier de certificat médical"
|
||||
),
|
||||
),
|
||||
]
|
|
@ -65,18 +65,13 @@ class BDSProfile(models.Model):
|
|||
mails_bds = models.BooleanField(_("recevoir les mails du BDS"), default=False)
|
||||
|
||||
has_certificate = models.BooleanField(_("certificat médical"), default=False)
|
||||
certificate_file = models.FileField(
|
||||
_("fichier de certificat médical"),
|
||||
upload_to=get_certificate_filename,
|
||||
blank=True,
|
||||
certificate_file = models.BooleanField(
|
||||
_("fichier de certificat médical"), default=False
|
||||
)
|
||||
|
||||
ASPSL_number = models.CharField(
|
||||
_("numéro AS PSL"), max_length=50, blank=True, null=True
|
||||
)
|
||||
FFSU_number = models.CharField(
|
||||
_("numéro FFSU"), max_length=50, blank=True, null=True
|
||||
)
|
||||
|
||||
is_member = models.BooleanField(_("adhérent⋅e du BDS"), default=False)
|
||||
cotisation_period = models.CharField(
|
||||
|
|
Loading…
Reference in a new issue