fixed issue in open data importer

This commit is contained in:
vabene1111 2024-02-18 17:51:01 +01:00
parent 55b8b78a16
commit bfb8c31329

View File

@ -203,7 +203,7 @@ class OpenDataImporter:
'space': self.request.space.id, 'space': self.request.space.id,
} }
if self.update_existing: if obj['open_data_slug'] in existing_data:
obj['space'] = self.request.space obj['space'] = self.request.space
obj['pk'] = existing_data[obj['open_data_slug']]['pk'] obj['pk'] = existing_data[obj['open_data_slug']]['pk']
obj = Food(**obj) obj = Food(**obj)