Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
re2o
Commits
5057fc0e
Commit
5057fc0e
authored
Aug 19, 2017
by
Gabriel Detraz
Committed by
root
Aug 19, 2017
Browse files
Fix ajout moyen de paiement
parent
e29dcbd5
Changes
3
Show whitespace changes
Inline
Side-by-side
cotisations/migrations/0019_auto_20170819_0055.py
0 → 100644
View file @
5057fc0e
# -*- 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
),
),
]
cotisations/migrations/0020_auto_20170819_0057.py
0 → 100644
View file @
5057fc0e
# -*- 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
),
),
]
cotisations/models.py
View file @
5057fc0e
...
...
@@ -157,12 +157,12 @@ class Banque(models.Model):
class
Paiement
(
models
.
Model
):
PRETTY_NAME
=
"Moyens de paiement"
PAYMENT_TYPES
=
(
(
'check'
,
'Chèqu
e'
),
(
None
,
'Autr
e'
),
(
0
,
'Autr
e'
),
(
1
,
'Chèqu
e'
),
)
moyen
=
models
.
CharField
(
max_length
=
255
)
type_paiement
=
models
.
Cha
rField
(
choices
=
PAYMENT_TYPES
,
max_length
=
255
)
type_paiement
=
models
.
Intege
rField
(
choices
=
PAYMENT_TYPES
,
default
=
0
,
max_length
=
255
)
def
__str__
(
self
):
return
self
.
moyen
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment