Fixes base activity tests

This commit is contained in:
Mouse Reeve
2021-02-16 20:24:37 -08:00
parent a9ca3a4290
commit 77781d57c3
2 changed files with 6 additions and 40 deletions

View File

@ -107,7 +107,10 @@ class ActivityObject:
instance = instance or model()
for field in instance.simple_fields:
field.set_field_from_activity(instance, self)
try:
field.set_field_from_activity(instance, self)
except AttributeError as e:
raise ActivitySerializerError(e)
# image fields have to be set after other fields because they can save
# too early and jank up users