Fixes #12; 500 error when re/un assigning slot presentations
This commit is contained in:
parent
5b853f9300
commit
2f6930ae11
1 changed files with 4 additions and 3 deletions
|
@ -77,9 +77,10 @@ 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:
|
content = self.content
|
||||||
self.content.slot = None
|
if content and content.slot_id:
|
||||||
self.content.save()
|
content.slot = None
|
||||||
|
content.save()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def content(self):
|
def content(self):
|
||||||
|
|
Loading…
Reference in a new issue