Bugfix: Cannot unassign presentation on schedule/edit view

This commit is contained in:
Martin Brochhaus 2014-05-18 15:50:51 +08:00
parent 5c07d3e945
commit bf4b682e8a

View file

@ -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):