@@ -76,16 +76,16 @@ class Slot(models.Model):
content.save()
def unassign(self):
"""
Unassign the associated content with this slot.
if self.content and self.content.slot_id:
presentation = self.content
presentation.slot = None
presentation.save()
content = self.content
if content and content.slot_id:
content.slot = None
@property
def content(self):
Return the content this slot represents.
@@@ hard-coded for presentation for now