diff --git a/tailbone/views/shifts/schedule.py b/tailbone/views/shifts/schedule.py index 26bb65cd..2509053f 100644 --- a/tailbone/views/shifts/schedule.py +++ b/tailbone/views/shifts/schedule.py @@ -84,9 +84,9 @@ class ScheduleView(TimeSheetView): deleted = [] for uuid, value in data['delete'].iteritems(): if value == 'delete': - shift = self.Session.query(model.ScheduledShift).get(uuid) + shift = Session.query(model.ScheduledShift).get(uuid) if shift: - self.Session.delete(shift) + Session.delete(shift) deleted.append(uuid) # apply create / update operations