This commit is contained in:
Виктор Гладких 2019-11-01 16:24:17 +03:00
parent c51cfc1aa4
commit afdc0154c6

View File

@ -98,7 +98,7 @@ class Command(BaseCommand):
description=obj['description'], description=obj['description'],
slug=obj['slug'], old_id=obj['collection_id'], slug=obj['slug'], old_id=obj['collection_id'],
start=obj['start'], start=obj['start'],
image_url=obj['attachment_suffix_url'] image_url='https://s3.eu-central-1.amazonaws.com/gm-test.com/media/collections/'+obj['attachment_suffix_url']
) )
) )
Collection.objects.bulk_create(objects) Collection.objects.bulk_create(objects)