From c979bdda454ea9a778d8e808d6bffa331bab5a3e Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Tue, 3 Jul 2018 16:31:06 +0200 Subject: [PATCH] Nommage des champs ComNpay --- .../migrations/0034_auto_20180703_0929.py | 26 +++++++++++++++++++ cotisations/payment_methods/comnpay/models.py | 5 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 cotisations/migrations/0034_auto_20180703_0929.py diff --git a/cotisations/migrations/0034_auto_20180703_0929.py b/cotisations/migrations/0034_auto_20180703_0929.py new file mode 100644 index 00000000..1e726cd1 --- /dev/null +++ b/cotisations/migrations/0034_auto_20180703_0929.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2018-07-03 14:29 +from __future__ import unicode_literals + +import cotisations.payment_methods.comnpay.aes_field +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cotisations', '0033_balancepayment'), + ] + + operations = [ + migrations.AlterField( + model_name='comnpaypayment', + name='payment_credential', + field=models.CharField(blank=True, default='', max_length=255, verbose_name='ComNpay VAD Number'), + ), + migrations.AlterField( + model_name='comnpaypayment', + name='payment_pass', + field=cotisations.payment_methods.comnpay.aes_field.AESEncryptedField(blank=True, max_length=255, null=True, verbose_name='ComNpay Secret Key'), + ), + ] diff --git a/cotisations/payment_methods/comnpay/models.py b/cotisations/payment_methods/comnpay/models.py index 0319ddd7..fefa3587 100644 --- a/cotisations/payment_methods/comnpay/models.py +++ b/cotisations/payment_methods/comnpay/models.py @@ -2,6 +2,7 @@ from django.db import models from django.shortcuts import render from django.urls import reverse from django.utils.translation import ugettext as _ +from django.utils.translation import ugettext_lazy as _l from cotisations.models import Paiement from cotisations.payment_methods.mixins import PaymentMethodMixin @@ -22,12 +23,14 @@ class ComnpayPayment(PaymentMethodMixin, models.Model): payment_credential = models.CharField( max_length=255, default='', - blank=True + blank=True, + verbose_name=_l("ComNpay VAD Number"), ) payment_pass = AESEncryptedField( max_length=255, null=True, blank=True, + verbose_name=_l("ComNpay Secret Key"), ) def end_payment(self, invoice, request):