From 9ab38c464d2c19f5eaa01dd299cdffb9d5be3498 Mon Sep 17 00:00:00 2001 From: M1ha Date: Thu, 13 Dec 2018 11:53:36 +0500 Subject: [PATCH] Bugfix --- src/django_clickhouse/clickhouse_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_clickhouse/clickhouse_models.py b/src/django_clickhouse/clickhouse_models.py index 53d81b4..91e93f8 100644 --- a/src/django_clickhouse/clickhouse_models.py +++ b/src/django_clickhouse/clickhouse_models.py @@ -30,7 +30,7 @@ class ClickHouseModelMeta(InfiModelBase): if res.django_model and not issubclass(res.django_model, ClickHouseSyncModel): raise TypeError('django_model must be ClickHouseSyncModel subclass') - if res.django_model and res.get_sync_delay(): + if res.django_model and res.sync_enabled: res.django_model.register_clickhouse_sync_model(res) res.objects = QuerySet(res)