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

Fix image collection ID?

parent 3db54f4f
No related branches found
No related tags found
2 merge requests!1303Release,!1302Fix image collection ID?
Pipeline #20970 passed
......@@ -52,5 +52,9 @@ class Command(BaseCommand):
for person_page in DistrictManualOctopusPersonPage.objects.all():
import_manual_person.delay(
person_page.id, person_page.root_page.image_collection_id
person_page.id, (
person_page.root_page.image_collection_id
if hasattr(person_page.root_page, "image_collection_id")
else 0
)
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment