Fix bug where activity.content was not populated

This commit is contained in:
Jessica Tallon 2014-10-04 11:26:48 +01:00
parent 6d36f75f84
commit 240e987016

View File

@ -1117,9 +1117,13 @@ class ActivityIntermediator(Base):
if key is None: if key is None:
raise ValueError("Invalid type of object given") raise ValueError("Invalid type of object given")
# First set self as activity # We need to save so that self.id is populated
obj.activity_as_object = self.id
self.type = key self.type = key
self.save()
# First set self as activity
obj.activity = self.id
obj.save()
def get(self): def get(self):
""" Finds the object for an activity """ """ Finds the object for an activity """