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