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
2bef274f
Commit
2bef274f
authored
Nov 17, 2021
by
Etienne Freiss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajouter du tag is_makeup a true pour rattrapages
parent
4983a101
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
models.py
shifts/models.py
+1
-0
views.py
shifts/views.py
+2
-1
No files found.
shifts/models.py
View file @
2bef274f
...
...
@@ -144,6 +144,7 @@ class CagetteShift(models.Model):
"shift_ticket_id"
:
self
.
get_shift_ticket
(
data
[
'idShift'
],
data
[
'in_ftop_team'
]),
"shift_type"
:
shift_type
,
"origin"
:
'memberspace'
,
"is_makeup"
:
data
[
'is_makeup'
],
"state"
:
'open'
}
st_r_id
=
self
.
o_api
.
create
(
'shift.registration'
,
fieldsDatas
)
...
...
shifts/views.py
View file @
2bef274f
...
...
@@ -228,7 +228,8 @@ def add_shift(request):
data
=
{
"idPartner"
:
int
(
request
.
POST
[
'idPartner'
]),
"idShift"
:
int
(
request
.
POST
[
'idNewShift'
]),
"in_ftop_team"
:
request
.
POST
[
'in_ftop_team'
]
"in_ftop_team"
:
request
.
POST
[
'in_ftop_team'
],
"is_makeup"
:
True
}
#Insertion du nouveau shift
...
...
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