Add accepte_charte field to Participant model

This commit is contained in:
Ludovic Stephan 2019-09-18 19:34:56 +02:00
parent 92ebf0d233
commit 0a1b20dd4e
2 changed files with 19 additions and 0 deletions

View file

@ -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"
),
)
]

View file

@ -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
)