Skip to content
Snippets Groups Projects
Commit b59929c2 authored by Alexa Valentová's avatar Alexa Valentová
Browse files

fix image collection id workaround

parent abe8e36a
No related branches found
No related tags found
2 merge requests!1197fix image collection id workaround,!1196fix image collection id workaround
Pipeline #20171 passed
......@@ -33,6 +33,10 @@ class Command(BaseCommand):
for people_page in DistrictPeoplePage.objects.all():
for team in people_page.get_syncable_octopus_teams():
if not hasattr(people_page.root_page, "image_collection_id"):
# FIXME: This should not be UniwebHomePage, but sometimes it is.
continue
collection_id = people_page.root_page.image_collection_id
if collection_id is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment