Fixes remaining test patches
This commit is contained in:
parent
80241e59a7
commit
76e90cb3f6
8 changed files with 68 additions and 25 deletions
|
@ -93,7 +93,10 @@ class ActivityObject:
|
|||
with transaction.atomic():
|
||||
# we can't set many to many and reverse fields on an unsaved object
|
||||
try:
|
||||
instance.save(broadcast=False)
|
||||
try:
|
||||
instance.save(broadcast=False)
|
||||
except TypeError:
|
||||
instance.save()
|
||||
except IntegrityError as e:
|
||||
raise ActivitySerializerError(e)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue