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. Unassign the associated content with this slot.
""" """
if self.content and self.content.slot_id: if self.content and self.content.slot_id:
self.content.slot = None presentation = self.content
self.content.save() presentation.slot = None
presentation.save()
@property @property
def content(self): def content(self):