Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Re2o
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levy--Falk Hugo
Re2o
Commits
ef846415
Commit
ef846415
authored
Jul 13, 2018
by
Levy--Falk Hugo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Il est vrai qu'il est bien de pouvoir créer des paiement sans méthode de paiement...
parent
17da4a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
forms.py
cotisations/payment_methods/forms.py
+2
-0
No files found.
cotisations/payment_methods/forms.py
View file @
ef846415
...
@@ -104,6 +104,8 @@ class PaymentMethodForm(forms.Form):
...
@@ -104,6 +104,8 @@ class PaymentMethodForm(forms.Form):
Tries to call `payment_method.alter_payment` if it exists.
Tries to call `payment_method.alter_payment` if it exists.
"""
"""
commit
=
kwargs
.
pop
(
'commit'
,
True
)
commit
=
kwargs
.
pop
(
'commit'
,
True
)
if
not
hasattr
(
self
,
'payment_method'
):
return
None
self
.
payment_method
.
payment
=
payment
self
.
payment_method
.
payment
=
payment
if
hasattr
(
self
.
payment_method
,
'alter_payment'
):
if
hasattr
(
self
.
payment_method
,
'alter_payment'
):
self
.
payment_method
.
alter_payment
(
payment
)
self
.
payment_method
.
alter_payment
(
payment
)
...
...
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