From e153390c15bc28a46e2796d3c52193916e9e1428 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 12 Oct 2016 15:03:10 -0500 Subject: [PATCH] Fix bug, break for loop when we can --- tailbone/views/shifts/schedule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tailbone/views/shifts/schedule.py b/tailbone/views/shifts/schedule.py index 02aae21b..c620a505 100644 --- a/tailbone/views/shifts/schedule.py +++ b/tailbone/views/shifts/schedule.py @@ -59,6 +59,7 @@ class ScheduleView(TimeSheetView): uuid = key[len('{}-'.format(field)):] if uuid: data[field][uuid] = self.request.POST[key] + break # if no fields, don't apply changes (filter form uses POST also) if any(data.itervalues()):