diff --git a/gcloud/contrib/template_market/models.py b/gcloud/contrib/template_market/models.py index 016c64727..f70c58439 100644 --- a/gcloud/contrib/template_market/models.py +++ b/gcloud/contrib/template_market/models.py @@ -68,7 +68,9 @@ def update_shared_record( new_records.append(new_record) if new_records: - TemplateSharedRecord.objects.bulk_create(batch_size=TEMPLATE_SHARED_RECORD_BATCH_OPERATION_COUNT) + TemplateSharedRecord.objects.bulk_create( + new_records, batch_size=TEMPLATE_SHARED_RECORD_BATCH_OPERATION_COUNT + ) if records_to_update: TemplateSharedRecord.objects.bulk_update(