Skip to content
Snippets Groups Projects
Verified Commit 6756e28d authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: use validate_update_request in partial_update

parent 161d963d
No related branches found
No related tags found
No related merge requests found
......@@ -1134,6 +1134,8 @@ class APIScheduleViewSet(viewsets.ModelViewSet):
Partial update a schedule without generating timeslots, testing or resolving collisions.
"""
self.validate_update_request()
# only these fields can be updated without generating conflicts
allowed = {"default_playlist_id", "is_repetition", "last_date"}
update_fields = set(request.data.get("schedule").keys())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment