mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-22 09:06:43 +03:00
Fix module import on auto sync
This commit is contained in:
parent
b94195c1f1
commit
59f0efae15
|
@ -28,7 +28,10 @@ def clickhouse_auto_sync():
|
|||
"""
|
||||
# Import all model modules
|
||||
for app in settings.INSTALLED_APPS:
|
||||
try:
|
||||
import_submodules("%s.%s" % (app, config.MODELS_MODULE))
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
# Start
|
||||
for cls in get_subclasses(ClickHouseModel, recursive=True):
|
||||
|
|
Loading…
Reference in New Issue
Block a user