Bugfix for old django, expecting manager to be instance of models.Manager

This commit is contained in:
M1ha 2019-10-15 18:13:14 +05:00
parent 9e4fc1e88e
commit fac7945ba5

View File

@ -116,7 +116,7 @@ qs_bases.append(DjangoQuerySet)
ClickHouseSyncQuerySet = type('ClickHouseSyncModelQuerySet', tuple(qs_bases), {})
class ClickHouseSyncManager(BaseManager.from_queryset(ClickHouseSyncQuerySet)):
class ClickHouseSyncManager(BaseManager.from_queryset(ClickHouseSyncQuerySet), models.Manager):
pass