mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 00:13:12 +00:00
Fix bug migration
This commit is contained in:
parent
8ed051fc54
commit
65dedc07d8
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ def create_type(apps, schema_editor):
|
||||||
Vente = apps.get_model('cotisations', 'Vente')
|
Vente = apps.get_model('cotisations', 'Vente')
|
||||||
Article = apps.get_model('cotisations', 'Article')
|
Article = apps.get_model('cotisations', 'Article')
|
||||||
db_alias = schema_editor.connection.alias
|
db_alias = schema_editor.connection.alias
|
||||||
articles = Articles.objects.using(db_alias).all()
|
articles = Article.objects.using(db_alias).all()
|
||||||
ventes = Vente.objects.using(db_alias).all()
|
ventes = Vente.objects.using(db_alias).all()
|
||||||
cotisations = Cotisation.objects.using(db_alias).all()
|
cotisations = Cotisation.objects.using(db_alias).all()
|
||||||
for article in articles:
|
for article in articles:
|
||||||
|
@ -54,7 +54,7 @@ class Migration(migrations.Migration):
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='article',
|
model_name='article',
|
||||||
name='type_cotisation',
|
name='type_cotisation',
|
||||||
field=models.CharField(choices=[('Connexion', 'Connexion'), ('Adhesion', 'Adhesion'), ('All', 'All')], default=None, max_length=255, null=True),
|
field=models.CharField(blank=True, choices=[('Connexion', 'Connexion'), ('Adhesion', 'Adhesion'), ('All', 'All')], default=None, max_length=255, null=True),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='cotisation',
|
model_name='cotisation',
|
||||||
|
|
Loading…
Reference in a new issue