From 8661716df996f84a58b3f14449b3aa5d908c8ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 27 Jul 2020 22:14:20 +0200 Subject: [PATCH] BDS doesn't need the certificate file --- .../0005_remove_bdsprofile_certificate_file.py | 14 ++++++++++++++ bds/models.py | 5 ----- 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 bds/migrations/0005_remove_bdsprofile_certificate_file.py diff --git a/bds/migrations/0005_remove_bdsprofile_certificate_file.py b/bds/migrations/0005_remove_bdsprofile_certificate_file.py new file mode 100644 index 00000000..514c2d08 --- /dev/null +++ b/bds/migrations/0005_remove_bdsprofile_certificate_file.py @@ -0,0 +1,14 @@ +# Generated by Django 2.2.14 on 2020-07-27 20:14 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("bds", "0004_is_member_cotiz_type"), + ] + + operations = [ + migrations.RemoveField(model_name="bdsprofile", name="certificate_file",), + ] diff --git a/bds/models.py b/bds/models.py index f597cc94..1b9ca6bc 100644 --- a/bds/models.py +++ b/bds/models.py @@ -67,11 +67,6 @@ 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, - ) ASPSL_number = models.CharField( _("numéro AS PSL"), max_length=50, blank=True, null=True