From 9720b9715c323fa92edc451d17caf8969b3860e8 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sat, 2 Sep 2017 13:03:37 +0200 Subject: [PATCH] Field inutile pour un integerfield --- .../migrations/0023_auto_20170902_1303.py | 20 +++++++++++++++++++ cotisations/models.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 cotisations/migrations/0023_auto_20170902_1303.py diff --git a/cotisations/migrations/0023_auto_20170902_1303.py b/cotisations/migrations/0023_auto_20170902_1303.py new file mode 100644 index 00000000..04453c18 --- /dev/null +++ b/cotisations/migrations/0023_auto_20170902_1303.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.7 on 2017-09-02 11:03 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cotisations', '0022_auto_20170824_0128'), + ] + + operations = [ + migrations.AlterField( + model_name='paiement', + name='type_paiement', + field=models.IntegerField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0), + ), + ] diff --git a/cotisations/models.py b/cotisations/models.py index f1b8f8cf..b716f836 100644 --- a/cotisations/models.py +++ b/cotisations/models.py @@ -164,7 +164,7 @@ class Paiement(models.Model): ) moyen = models.CharField(max_length=255) - type_paiement = models.IntegerField(choices=PAYMENT_TYPES, default=0, max_length=255) + type_paiement = models.IntegerField(choices=PAYMENT_TYPES, default=0) def __str__(self): return self.moyen