Commit e312cb6f authored by Bengfort's avatar Bengfort
Browse files

fix InvitationApiView.put()

parent a30d6bc6
Pipeline #9067 passed with stages
in 2 minutes and 55 seconds
......@@ -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'] =
invitation, _ = Invitation.objects.get_or_create(**kwargs)
return HttpResponse(status=204)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment