diff --git a/program/views.py b/program/views.py index c295262f8f506560df67935c5279850c02d8f6e8..9b8fcbcf2b1f2b9c78bf1949dfd427cdcbceda5c 100644 --- a/program/views.py +++ b/program/views.py @@ -372,6 +372,10 @@ class APIScheduleViewSet( # Otherwise try to resolve resolution = Schedule.resolve_conflicts(request.data, pk, show_pk) + if all(key in resolution for key in ["create", "update", "delete"]): + # this is a dry-run + return Response(resolution, status=status.HTTP_202_ACCEPTED) + # If resolution went well if "projected" not in resolution: return Response(resolution, status=status.HTTP_201_CREATED)