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

fix order, collection id

parent 802eb63d
No related branches found
No related tags found
2 merge requests!1191fix order, collection id,!1190fix order, collection id
Pipeline #20078 passed
......@@ -15,6 +15,10 @@ class Command(BaseCommand):
def handle(self, *args, **options):
for people_page in DistrictPeoplePage.objects.all():
for group in people_page.get_syncable_octopus_groups():
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:
......
......@@ -39,7 +39,7 @@ class ImporterMixin:
"email": profile["email"],
"phone": profile["phone"],
"position": profile.get("position"),
"order": profile.get("order"),
"order": profile.get("order", 0),
"facebook_url": profile["facebookUrl"],
"flickr_url": profile["flickrUrl"],
"instagram_url": profile["instagramUrl"],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment