Commit 5057fc0e authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Fix ajout moyen de paiement

parent e29dcbd5
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-18 22:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotisations', '0018_paiement_type_paiement'),
]
operations = [
migrations.AlterField(
model_name='paiement',
name='type_paiement',
field=models.CharField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0, max_length=255),
),
]
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-08-18 22:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotisations', '0019_auto_20170819_0055'),
]
operations = [
migrations.AlterField(
model_name='paiement',
name='type_paiement',
field=models.IntegerField(choices=[(0, 'Autre'), (1, 'Chèque')], default=0, max_length=255),
),
]
......@@ -157,12 +157,12 @@ class Banque(models.Model):
class Paiement(models.Model):
PRETTY_NAME = "Moyens de paiement"
PAYMENT_TYPES = (
('check', 'Chèque'),
(None, 'Autre'),
(0, 'Autre'),
(1, 'Chèque'),
)
moyen = models.CharField(max_length=255)
type_paiement = models.CharField(choices=PAYMENT_TYPES, max_length=255)
type_paiement = models.IntegerField(choices=PAYMENT_TYPES, default=0, max_length=255)
def __str__(self):
return self.moyen
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment