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
578b0c52
Commit
578b0c52
authored
Jan 07, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#7322 : set suppleant_member_id in create_pair
parent
3817e753
Pipeline
#4045
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
admin.py
members/admin.py
+3
-0
No files found.
members/admin.py
View file @
578b0c52
...
...
@@ -780,6 +780,7 @@ def create_pair(request):
"nb_associated_people"
,
"current_template_name"
,
"parent_id"
,
"suppleant_member_id"
,
"is_associated_people"
,
"makeups_to_do"
,
"final_standard_points"
,
...
...
@@ -829,6 +830,8 @@ def create_pair(request):
child
[
field
]
=
False
child
[
'is_associated_people'
]
=
True
child
[
'parent_id'
]
=
parent
[
'id'
]
#Link the newly created attached suppleant contact and the suppleant member
child
[
'suppleant_member_id'
]
=
child_id
# Following lines are useful if parent or child is unsubscribed
if
not
'shift_type'
in
parent
:
parent
[
'shift_type'
]
=
'standard'
...
...
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