From 0a1b20dd4ecc13fa834579bbf64ea7b67bde6848 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 18 Sep 2019 19:34:56 +0200 Subject: [PATCH] Add `accepte_charte` field to `Participant` model --- .../0017_participant_accepte_charte.py | 18 ++++++++++++++++++ bda/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 bda/migrations/0017_participant_accepte_charte.py 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 )