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
Castellum
castellum_scheduler
Commits
e312cb6f
Commit
e312cb6f
authored
Mar 02, 2021
by
Bengfort
Browse files
fix InvitationApiView.put()
parent
a30d6bc6
Pipeline
#9067
passed with stages
in 2 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scheduler/main/views.py
View file @
e312cb6f
...
...
@@ -153,6 +153,9 @@ class InvitationApiView(View):
})
def
put
(
self
,
request
,
*
args
,
**
kwargs
):
if
'schedule__uuid'
in
kwargs
:
schedule
=
get_object_or_404
(
Schedule
,
uuid
=
kwargs
.
pop
(
'schedule__uuid'
))
kwargs
[
'schedule_id'
]
=
schedule
.
id
invitation
,
_
=
Invitation
.
objects
.
get_or_create
(
**
kwargs
)
return
HttpResponse
(
status
=
204
)
...
...
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