Skip to content

Commit

Permalink
temp solution to updating cojo through co save
Browse files Browse the repository at this point in the history
  • Loading branch information
acwhite211 committed Dec 19, 2024
1 parent 4e24a2b commit 674a2d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions specifyweb/specify/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,9 @@ def update_obj(collection, agent, name: str, id, version, data: Dict[str, Any],
else:
obj.modifiedbyagent = agent

if obj._meta.model_name == 'collectionobjectgroupjoin':
obj.save()

bump_version(obj, version)
obj.save(force_update=True)
auditlog.update(obj, agent, parent_obj, dirty)
Expand Down

0 comments on commit 674a2d7

Please sign in to comment.