Bugfix: Cannot unassign presentation on schedule/edit view
This commit is contained in:
parent
5c07d3e945
commit
bf4b682e8a
1 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue