From cb96272b46bd18b68d0f8e3e83909f120fe74e8b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 21 Feb 2017 12:01:40 -0600 Subject: [PATCH] Fix session reference bug in schedule view --- tailbone/views/shifts/schedule.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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