diff --git a/bda/migrations/0019_auto_20240707_1359.py b/bda/migrations/0019_auto_20240707_1359.py new file mode 100644 index 00000000..ad25e0d6 --- /dev/null +++ b/bda/migrations/0019_auto_20240707_1359.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.28 on 2024-07-07 11:59 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('bda', '0018_auto_20201021_1818'), + ] + + operations = [ + migrations.AlterField( + model_name='attribution', + name='paymenttype', + field=models.CharField(blank=True, choices=[('cash', 'Cash'), ('cb', 'CB'), ('cheque', 'Chèque'), ('virement', 'Virement'), ('autre', 'Autre')], max_length=8, verbose_name='Moyen de paiement'), + ), + ] diff --git a/bda/models.py b/bda/models.py index 9bc2ce3c..af0d49fb 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):