diff --git a/bds/migrations/0004_is_member_cotiz_type.py b/bds/migrations/0004_is_member_cotiz_type.py new file mode 100644 index 00000000..53d332d8 --- /dev/null +++ b/bds/migrations/0004_is_member_cotiz_type.py @@ -0,0 +1,34 @@ +# Generated by Django 2.2.8 on 2019-12-22 10:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("bds", "0003_staff_permission"), + ] + + operations = [ + migrations.AddField( + model_name="bdsprofile", + name="cotisation_type", + field=models.CharField( + choices=[ + ("ETU", "Étudiant"), + ("NOR", "Normalien"), + ("EXT", "Extérieur"), + ("ARC", "Archicube"), + ], + default="Normalien", + max_length=9, + verbose_name="type de cotisation", + ), + preserve_default=False, + ), + migrations.AddField( + model_name="bdsprofile", + name="is_member", + field=models.BooleanField(default=False, verbose_name="membre du BDS"), + ), + ] diff --git a/bds/models.py b/bds/models.py index eb5a67aa..60778f4d 100644 --- a/bds/models.py +++ b/bds/models.py @@ -78,13 +78,16 @@ class BDSProfile(models.Model): _("numéro FFSU"), max_length=50, blank=True, null=True ) + is_member = models.BooleanField(_("membre du BDS"), default=False) cotisation_period = models.CharField( _("inscription"), default="NO", choices=COTIZ_DURATION_CHOICES, max_length=3 ) - registration_date = models.DateField( auto_now_add=True, verbose_name=_("date d'inscription") ) + cotisation_type = models.CharField( + _("type de cotisation"), choices=TYPE_COTIZ_CHOICES, max_length=9 + ) class Meta: verbose_name = _("Profil BDS")