Skip to content

Commit

Permalink
Tweaks to updating of Organisations objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Dec 1, 2022
1 parent 5545a63 commit 199b6a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iati_datastore/iatilib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def _unique(session, cls, hashfunc, queryfunc, constructor, arg, kw):
if key in cache:
if getattr(session, '_update_all_unique', False):
obj = cache[key]
for property in kw:
obj[property] = kw[property]
for name, value in kw.items():
setattr(obj, name, value)
return obj
else:
return cache[key]
Expand Down

0 comments on commit 199b6a8

Please sign in to comment.