Fix things, unfix things, refix things, break things, fix things
This commit is contained in:
parent
08dc5b4d86
commit
7b21a0a208
4 changed files with 12 additions and 9 deletions
|
@ -79,8 +79,10 @@ class ActivityObject:
|
|||
value = value.to_activity()
|
||||
# parse a dict into the appropriate activity
|
||||
elif is_subclass and isinstance(value, dict):
|
||||
value = naive_parse(
|
||||
activity_objects, value, serializer=field.type)
|
||||
if activity_objects:
|
||||
value = naive_parse(activity_objects, value)
|
||||
else:
|
||||
value = naive_parse(activity_objects, value, serializer=field.type)
|
||||
|
||||
except KeyError:
|
||||
if field.default == MISSING and \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue