mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
Fix de la migration des données.
This commit is contained in:
parent
ee86595509
commit
c05f8f826c
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,6 @@ def add_comnpay(apps, schema_editor):
|
||||||
)
|
)
|
||||||
comnpay = ComnpayPayment()
|
comnpay = ComnpayPayment()
|
||||||
comnpay.payment_user = options.payment_id
|
comnpay.payment_user = options.payment_id
|
||||||
comnpay.payment_pass = options.payment_pass
|
|
||||||
comnpay.payment = payment
|
comnpay.payment = payment
|
||||||
comnpay.save()
|
comnpay.save()
|
||||||
payment.moyen = "ComnPay"
|
payment.moyen = "ComnPay"
|
||||||
|
@ -61,6 +60,6 @@ class Migration(migrations.Migration):
|
||||||
],
|
],
|
||||||
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model),
|
bases=(cotisations.payment_methods.mixins.PaymentMethodMixin, models.Model),
|
||||||
),
|
),
|
||||||
# migrations.RunPython(add_comnpay),
|
migrations.RunPython(add_comnpay),
|
||||||
# migrations.RunPython(add_cheque),
|
migrations.RunPython(add_cheque),
|
||||||
]
|
]
|
||||||
|
|
|
@ -421,7 +421,8 @@ def add_paiement(request):
|
||||||
return form({
|
return form({
|
||||||
'factureform': payment,
|
'factureform': payment,
|
||||||
'payment_method': payment_method,
|
'payment_method': payment_method,
|
||||||
'action_name': _("Add")
|
'action_name': _("Add"),
|
||||||
|
'title': _("New payment method")
|
||||||
}, 'cotisations/facture.html', request)
|
}, 'cotisations/facture.html', request)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue