8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Fix Article (s)

This commit is contained in:
chirac 2019-07-14 19:55:53 +02:00
parent 3d7ad99d61
commit a51c5f4b57

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: