diff --git a/bda/migrations/0001_initial.py b/bda/migrations/0001_initial.py index 5bc848c8..6cf12083 100644 --- a/bda/migrations/0001_initial.py +++ b/bda/migrations/0001_initial.py @@ -77,12 +77,13 @@ class Migration(migrations.Migration): "paymenttype", models.CharField( blank=True, - max_length=6, + max_length=8, verbose_name="Moyen de paiement", choices=[ (b"cash", "Cash"), (b"cb", b"CB"), (b"cheque", "Ch\xe8que"), + (b"virement", "Virement"), (b"autre", "Autre"), ], ), diff --git a/bda/migrations/0008_py3.py b/bda/migrations/0008_py3.py index 3a7dfeb1..aed47216 100644 --- a/bda/migrations/0008_py3.py +++ b/bda/migrations/0008_py3.py @@ -31,9 +31,10 @@ class Migration(migrations.Migration): ("cash", "Cash"), ("cb", "CB"), ("cheque", "Chèque"), + ("virement", "Virement"), ("autre", "Autre"), ], - max_length=6, + max_length=8, verbose_name="Moyen de paiement", ), ), diff --git a/bda/migrations/0014_attribution_paid_field.py b/bda/migrations/0014_attribution_paid_field.py index e5ef2b2d..add6c11a 100644 --- a/bda/migrations/0014_attribution_paid_field.py +++ b/bda/migrations/0014_attribution_paid_field.py @@ -21,9 +21,10 @@ class Migration(migrations.Migration): ("cash", "Cash"), ("cb", "CB"), ("cheque", "Chèque"), + ("virement", "Virement"), ("autre", "Autre"), ], - max_length=6, + max_length=8, verbose_name="Moyen de paiement", ), ), diff --git a/bda/models.py b/bda/models.py index 578f235c..f166c4d2 100644 --- a/bda/models.py +++ b/bda/models.py @@ -151,6 +151,7 @@ PAYMENT_TYPES = ( ("cash", "Cash"), ("cb", "CB"), ("cheque", "Chèque"), + ("virement", "Virement"), ("autre", "Autre"), ) @@ -163,7 +164,7 @@ class Attribution(models.Model): given = models.BooleanField("Donnée", default=False) paid = models.BooleanField("Payée", default=False) paymenttype = models.CharField( - "Moyen de paiement", max_length=6, choices=PAYMENT_TYPES, blank=True + "Moyen de paiement", max_length=8, choices=PAYMENT_TYPES, blank=True ) def __str__(self):