Commit a51c5f4b authored by chirac's avatar chirac

Fix Article (s)

parent 3d7ad99d
Pipeline #1334 passed with stage
in 3 minutes and 5 seconds
......@@ -29,7 +29,7 @@ def delete_type(apps, schema_editor):
Vente = apps.get_model('cotisations', 'Vente')
Article = apps.get_model('cotisations', 'Article')
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()
for article in articles:
if article.type_cotisation:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment