mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-30 00:22:25 +00:00
Fix ajout moyen de paiement
This commit is contained in:
parent
60b760e668
commit
f90f381d38
3 changed files with 43 additions and 3 deletions
20
cotisations/migrations/0019_auto_20170819_0055.py
Normal file
20
cotisations/migrations/0019_auto_20170819_0055.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- 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),
|
||||||
|
),
|
||||||
|
]
|
20
cotisations/migrations/0020_auto_20170819_0057.py
Normal file
20
cotisations/migrations/0020_auto_20170819_0057.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- 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):
|
class Paiement(models.Model):
|
||||||
PRETTY_NAME = "Moyens de paiement"
|
PRETTY_NAME = "Moyens de paiement"
|
||||||
PAYMENT_TYPES = (
|
PAYMENT_TYPES = (
|
||||||
('check', 'Chèque'),
|
(0, 'Autre'),
|
||||||
(None, 'Autre'),
|
(1, 'Chèque'),
|
||||||
)
|
)
|
||||||
|
|
||||||
moyen = models.CharField(max_length=255)
|
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):
|
def __str__(self):
|
||||||
return self.moyen
|
return self.moyen
|
||||||
|
|
Loading…
Reference in a new issue