mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-22 00:56:37 +03:00
Bugfix in ClickHouseMultiModel sync
This commit is contained in:
parent
ecff04aaf2
commit
e81a6b5e4a
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue
Block a user