Fix bug where activity.content was not populated
This commit is contained in:
parent
6d36f75f84
commit
240e987016
@ -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 """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user