Added none condition to response
This commit is contained in:
parent
0420fafabf
commit
2ca31cedfb
|
|
@ -120,7 +120,7 @@ class Collection(ProjectBaseMixin, CollectionDateMixin,
|
||||||
for instance in instances.all():
|
for instance in instances.all():
|
||||||
raw_object = (instance.id, instance.establishment_type.index_name,
|
raw_object = (instance.id, instance.establishment_type.index_name,
|
||||||
instance.slug) if \
|
instance.slug) if \
|
||||||
hasattr(instance, 'slug') else (instance.id, None)
|
hasattr(instance, 'slug') else (instance.id, None, None)
|
||||||
raw_objects.append(raw_object)
|
raw_objects.append(raw_object)
|
||||||
|
|
||||||
# parse slugs
|
# parse slugs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user