fixed open data import store error
This commit is contained in:
parent
11a699ed47
commit
053ff9506a
@ -78,7 +78,7 @@ class OpenDataImporter:
|
||||
|
||||
# always add open data slug if matching supermarket is found, otherwise relation might fail
|
||||
supermarkets = Supermarket.objects.bulk_create(insert_list, unique_fields=('space', 'name',), update_conflicts=True, update_fields=('open_data_slug',))
|
||||
self._update_slug_cache(Supermarket, 'supermarket')
|
||||
self._update_slug_cache(Supermarket, 'store')
|
||||
|
||||
insert_list = []
|
||||
for k in list(self.data[datatype].keys()):
|
||||
|
Loading…
Reference in New Issue
Block a user