Bugfix in ClickHouseMultiModel sync

This commit is contained in:
M1ha 2018-11-26 15:38:10 +05:00
parent ecff04aaf2
commit e81a6b5e4a

View File

@ -229,7 +229,7 @@ class ClickHouseMultiModel(ClickHouseModel):
batches = {}
with statsd.timer(statsd_key.format('get_insert_batch')):
for model_cls in cls.sub_models:
batches[model_cls] = cls.get_insert_batch(import_objects)
batches[model_cls] = model_cls.get_insert_batch(import_objects)
with statsd.timer(statsd_key.format('insert')):
for model_cls, batch in batches.items():