Commit 74a2e265 authored by Hugo LEVY-FALK's avatar Hugo LEVY-FALK

Donne la bonne date lors de l'import des factures dans BaseInvoice.

parent 5208a9ca
......@@ -14,7 +14,9 @@ def reattribute_ids(apps, schema_editor):
BaseInvoice = apps.get_model('cotisations', 'BaseInvoice')
for f in Facture.objects.all():
base = BaseInvoice.objects.create(id=f.pk, date=f.date)
base = BaseInvoice.objects.create(id=f.pk)
base.date = f.date
base.save()
f.baseinvoice_ptr = base
f.save()
......
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