Fixes base activity tests
This commit is contained in:
parent
a9ca3a4290
commit
77781d57c3
2 changed files with 6 additions and 40 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue