diff --git a/bda/migrations/0017_participant_accepte_charte.py b/bda/migrations/0017_participant_accepte_charte.py new file mode 100644 index 00000000..6bd32d8f --- /dev/null +++ b/bda/migrations/0017_participant_accepte_charte.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2 on 2019-09-18 16:34 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [("bda", "0016_delete_participant_paid")] + + operations = [ + migrations.AddField( + model_name="participant", + name="accepte_charte", + field=models.BooleanField( + default=False, verbose_name="A accepté la charte BdA" + ), + ) + ] diff --git a/bda/models.py b/bda/models.py index 1a072eb7..f4a0fac6 100644 --- a/bda/models.py +++ b/bda/models.py @@ -195,6 +195,7 @@ class Participant(models.Model): Spectacle, through="Attribution", related_name="attributed_to" ) tirage = models.ForeignKey(Tirage, on_delete=models.CASCADE) + accepte_charte = models.BooleanField("A accepté la charte BdA", default=False) choicesrevente = models.ManyToManyField( Spectacle, related_name="subscribed", blank=True )