mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-22 00:56:37 +03:00
Bugfix in getting empty sync models
This commit is contained in:
parent
682c004ba4
commit
33dea53aa2
|
@ -161,7 +161,7 @@ class ClickHouseSyncModel(DjangoModel):
|
|||
Returns all clickhouse models, listening to this class
|
||||
:return: A set of model classes to sync
|
||||
"""
|
||||
return cls._clickhouse_sync_models
|
||||
return getattr(cls, '_clickhouse_sync_models', set())
|
||||
|
||||
@classmethod
|
||||
def register_clickhouse_operations(cls, operation, *model_pks, using=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user