From 2f6930ae11c6dcffd55d2e36c347fbcedd8552fa Mon Sep 17 00:00:00 2001 From: David Ray Date: Mon, 11 Aug 2014 16:33:23 -0400 Subject: [PATCH] Fixes #12; 500 error when re/un assigning slot presentations --- symposion/schedule/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/symposion/schedule/models.py b/symposion/schedule/models.py index c4614437..5ffd63ce 100644 --- a/symposion/schedule/models.py +++ b/symposion/schedule/models.py @@ -77,9 +77,10 @@ class Slot(models.Model): """ Unassign the associated content with this slot. """ - if self.content and self.content.slot_id: - self.content.slot = None - self.content.save() + content = self.content + if content and content.slot_id: + content.slot = None + content.save() @property def content(self):