Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
0e449a93
Commit
0e449a93
authored
Jan 30, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
match method naming standards
parent
e4671fda
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
admin.py
members/admin.py
+3
-3
No files found.
members/admin.py
View file @
0e449a93
...
@@ -757,7 +757,7 @@ def create_pair(request):
...
@@ -757,7 +757,7 @@ def create_pair(request):
'parent_id'
,
'parent_id'
,
'suppleant_member_id'
])[
0
]
'suppleant_member_id'
])[
0
]
case
=
is
PartnerInvolvedInB
inom
(
api
,
child
)
case
=
is
_partner_involved_in_b
inom
(
api
,
child
)
errors
=
[]
errors
=
[]
if
case
==
"MEMBER_SUPPLEANT_OF_BINOM"
:
if
case
==
"MEMBER_SUPPLEANT_OF_BINOM"
:
...
@@ -771,7 +771,7 @@ def create_pair(request):
...
@@ -771,7 +771,7 @@ def create_pair(request):
if
child
[
'current_template_name'
]
==
"Services des comités"
:
if
child
[
'current_template_name'
]
==
"Services des comités"
:
errors
.
append
(
"Le membre suppléant séléctionné fait parti du comité"
)
errors
.
append
(
"Le membre suppléant séléctionné fait parti du comité"
)
case
=
is
PartnerInvolvedInB
inom
(
api
,
parent
)
case
=
is
_partner_involved_in_b
inom
(
api
,
parent
)
errors
=
[]
errors
=
[]
if
case
==
"MEMBER_SUPPLEANT_OF_BINOM"
:
if
case
==
"MEMBER_SUPPLEANT_OF_BINOM"
:
...
@@ -882,7 +882,7 @@ def handle_suppleant_scheduled_makeups_on_pairing(parent_id, child, child_schedu
...
@@ -882,7 +882,7 @@ def handle_suppleant_scheduled_makeups_on_pairing(parent_id, child, child_schedu
parent_scheduled_makeups_length
=
parent_scheduled_makeups_length
+
1
parent_scheduled_makeups_length
=
parent_scheduled_makeups_length
+
1
def
is
PartnerInvolvedInB
inom
(
api
,
partner
):
def
is
_partner_involved_in_b
inom
(
api
,
partner
):
# First make sure the selected partner "is not already a suppleant"
# First make sure the selected partner "is not already a suppleant"
# Let's be prudent : cover both case of partner being suppleant member,
# Let's be prudent : cover both case of partner being suppleant member,
# and case of partner being the contact of a suppleant member
# and case of partner being the contact of a suppleant member
...
...
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