mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 15:33:45 +00:00
Update 0026_auto_20171028_0126.py
This commit is contained in:
parent
3d7ad99d61
commit
986ed99a9c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ def delete_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()
|
||||||
for article in articles:
|
for article in articles:
|
||||||
if article.type_cotisation:
|
if article.type_cotisation:
|
||||||
|
|
Loading…
Reference in a new issue