mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-22 00:56:37 +03:00
Bugfix for old django, expecting manager to be instance of models.Manager
This commit is contained in:
parent
fac7945ba5
commit
9d8bdb74b9
|
@ -7,7 +7,7 @@ from typing import Optional, Any, Type, Set
|
|||
|
||||
import six
|
||||
from django.db import transaction
|
||||
from django.db.models.manager import BaseManager
|
||||
from django.db.models.manager import BaseManager, Manager
|
||||
from django.db.models.signals import post_save, post_delete
|
||||
from django.dispatch import receiver
|
||||
from django.db.models import QuerySet as DjangoQuerySet, Model as DjangoModel
|
||||
|
@ -116,7 +116,7 @@ qs_bases.append(DjangoQuerySet)
|
|||
ClickHouseSyncQuerySet = type('ClickHouseSyncModelQuerySet', tuple(qs_bases), {})
|
||||
|
||||
|
||||
class ClickHouseSyncManager(BaseManager.from_queryset(ClickHouseSyncQuerySet), models.Manager):
|
||||
class ClickHouseSyncManager(BaseManager.from_queryset(ClickHouseSyncQuerySet), Manager):
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user