Fix things, unfix things, refix things, break things, fix things

This commit is contained in:
Mouse Reeve
2021-02-17 12:23:55 -08:00
parent 08dc5b4d86
commit 7b21a0a208
4 changed files with 12 additions and 9 deletions

View File

@ -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 \