forked from DGNum/gestioCOF
Add accepte_charte
field to Participant
model
This commit is contained in:
parent
92ebf0d233
commit
0a1b20dd4e
2 changed files with 19 additions and 0 deletions
18
bda/migrations/0017_participant_accepte_charte.py
Normal file
18
bda/migrations/0017_participant_accepte_charte.py
Normal 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"
|
||||
),
|
||||
)
|
||||
]
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue