This commit is contained in:
Виктор Гладких 2019-11-01 16:27:09 +03:00
parent afdc0154c6
commit 8787a6b944

View File

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