what you get for not testing locally

This commit is contained in:
vabene1111 2024-02-18 18:12:24 +01:00
parent 7bc567ab95
commit 7c1de82c8a

View File

@ -187,7 +187,7 @@ class OpenDataImporter:
existing_data = {}
existing_data_names = {}
for obj in Food.objects.filter(space=self.request.space).values('pk', 'name', 'open_data_slug'):
if obj.open_data_slug:
if 'open_data_slug' in obj:
existing_data[obj['open_data_slug']] = obj
existing_data_names[obj['name']] = obj