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
BDE
nk20
Commits
80143251
Commit
80143251
authored
Jul 08, 2019
by
Pierre-antoine Comby
Browse files
modelS
parent
d0e1920a
Pipeline
#7608
failed with stage
in 2 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
note/models.py
View file @
80143251
...
...
@@ -33,11 +33,11 @@ class Note(models.Model):
An abstract model, use to add transactions capabilities to a user
"""
solde
=
model
.
IntegerField
(
solde
=
model
s
.
IntegerField
(
verbose_name
=
_
(
'solde du compte'
),
help_text
=
_
(
"en centime, l' argent crédité pour cette instance"
)
)
active
=
model
.
BooleanField
(
active
=
model
s
.
BooleanField
(
default
=
True
,
verbose_name
=
_
(
'etat du compte'
)
)
...
...
@@ -60,7 +60,7 @@ class NoteUser(Note):
def
__str__
(
self
):
return
self
.
user
.
get_username
()
aliases
=
model
.
ForeignKey
(
Aliases
)
aliases
=
model
s
.
ForeignKey
(
Aliases
)
...
...
@@ -73,7 +73,7 @@ class NoteSpec(Note):
- Bank Check
- Refund
"""
account_type
=
model
.
CharField
(
account_type
=
model
s
.
CharField
(
max_length
=
2
,
choices
=
((
"CH"
,
"chèques"
),
(
"CB"
,
"Carte Bancaire"
),
...
...
Write
Preview
Supports
Markdown
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