8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-24 20:33:11 +00:00

Update 0026_auto_20171028_0126.py

This commit is contained in:
chirac 2019-07-14 18:05:34 +02:00
parent 3d7ad99d61
commit 986ed99a9c

View file

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