From bf4b682e8af7ef2b6fc6c292c257e7c13e3e55e5 Mon Sep 17 00:00:00 2001 From: Martin Brochhaus Date: Sun, 18 May 2014 15:50:51 +0800 Subject: [PATCH] Bugfix: Cannot unassign presentation on schedule/edit view --- symposion/schedule/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/symposion/schedule/models.py b/symposion/schedule/models.py index dc070917..e5680d90 100644 --- a/symposion/schedule/models.py +++ b/symposion/schedule/models.py @@ -79,8 +79,9 @@ 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() + presentation = self.content + presentation.slot = None + presentation.save() @property def content(self):