@@ -77,14 +77,15 @@ class Slot(models.Model):
def unassign(self):
"""
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):
Return the content this slot represents.
@@@ hard-coded for presentation for now