mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-30 21:49:50 -05:00
fixed issue in open data importer
This commit is contained in:
@@ -203,7 +203,7 @@ class OpenDataImporter:
|
||||
'space': self.request.space.id,
|
||||
}
|
||||
|
||||
if self.update_existing:
|
||||
if obj['open_data_slug'] in existing_data:
|
||||
obj['space'] = self.request.space
|
||||
obj['pk'] = existing_data[obj['open_data_slug']]['pk']
|
||||
obj = Food(**obj)
|
||||
|
||||
Reference in New Issue
Block a user