Correction des noms dans la migration
This commit is contained in:
parent
77511d8acd
commit
a9d44aa16e
1 changed files with 24 additions and 17 deletions
|
@ -15,17 +15,15 @@ class Migration(migrations.Migration):
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='SpectacleRevente',
|
name='SpectacleRevente',
|
||||||
fields=[
|
fields=[
|
||||||
('id', models.AutoField(verbose_name='ID', serialize=False,
|
('id', models.AutoField(serialize=False, primary_key=True,
|
||||||
auto_created=True, primary_key=True)),
|
auto_created=True, verbose_name='ID')),
|
||||||
('date', models.DateTimeField(
|
('date', models.DateTimeField(
|
||||||
default=django.utils.timezone.now,
|
verbose_name='Date de mise en vente',
|
||||||
verbose_name='Date de mise en vente')),
|
default=django.utils.timezone.now)),
|
||||||
('notif_sent', models.BooleanField(
|
('notif_sent', models.BooleanField(
|
||||||
default=False, verbose_name='Notification envoy\xe9e')),
|
verbose_name='Notification envoyée', default=False)),
|
||||||
('tirage_done', models.BooleanField(
|
('tirage_done', models.BooleanField(
|
||||||
default=False, verbose_name='Tirage effectu\xe9')),
|
verbose_name='Tirage effectué', default=False)),
|
||||||
('attribution', models.OneToOneField(related_name='revente',
|
|
||||||
to='bda.Attribution')),
|
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'verbose_name': 'Revente',
|
'verbose_name': 'Revente',
|
||||||
|
@ -34,26 +32,35 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='participant',
|
model_name='participant',
|
||||||
name='choicesrevente',
|
name='choicesrevente',
|
||||||
field=models.ManyToManyField(related_name='revente',
|
field=models.ManyToManyField(to='bda.Spectacle',
|
||||||
to='bda.Spectacle', blank=True),
|
related_name='subscribed',
|
||||||
|
blank=True),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='spectaclerevente',
|
model_name='spectaclerevente',
|
||||||
name='interested',
|
name='answered_mail',
|
||||||
field=models.ManyToManyField(related_name='wanted',
|
field=models.ManyToManyField(to='bda.Participant',
|
||||||
to='bda.Participant', blank=True),
|
related_name='wanted',
|
||||||
|
blank=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='spectaclerevente',
|
||||||
|
name='attribution',
|
||||||
|
field=models.OneToOneField(to='bda.Attribution',
|
||||||
|
related_name='revente'),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='spectaclerevente',
|
model_name='spectaclerevente',
|
||||||
name='seller',
|
name='seller',
|
||||||
field=models.ForeignKey(related_name='original_shows',
|
field=models.ForeignKey(to='bda.Participant',
|
||||||
verbose_name='Vendeur',
|
verbose_name='Vendeur',
|
||||||
to='bda.Participant'),
|
related_name='original_shows'),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='spectaclerevente',
|
model_name='spectaclerevente',
|
||||||
name='soldTo',
|
name='soldTo',
|
||||||
field=models.ForeignKey(verbose_name='Vendue \xe0', blank=True,
|
field=models.ForeignKey(to='bda.Participant',
|
||||||
to='bda.Participant', null=True),
|
verbose_name='Vendue à', null=True,
|
||||||
|
blank=True),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue