mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-25 10:33:47 +03:00
Bugfix
This commit is contained in:
parent
a5bbc9ba00
commit
5add74cc39
|
@ -63,7 +63,7 @@ class ClickHouseModel(with_metaclass(ClickHouseModelMeta, InfiModel)):
|
|||
if for_write:
|
||||
return db_router.db_for_write(cls)
|
||||
else:
|
||||
return db_router.db_for_read(self)
|
||||
return db_router.db_for_read(cls)
|
||||
|
||||
@classmethod
|
||||
def get_django_model_serializer(cls, writable=False): # type: (bool) -> Django2ClickHouseModelSerializer
|
||||
|
|
Loading…
Reference in New Issue
Block a user