mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-28 20:13:45 +03:00
Bugfix for old django, expecting manager to be instance of models.Manager
This commit is contained in:
parent
c58ed24187
commit
746321e6b6
|
@ -7,18 +7,17 @@ from typing import Optional, Any, Type, Set
|
||||||
|
|
||||||
import six
|
import six
|
||||||
from django.db import transaction
|
from django.db import transaction
|
||||||
from django.db.models.manager import BaseManager
|
|
||||||
from django.db.models import Manager
|
from django.db.models import Manager
|
||||||
|
from django.db.models import QuerySet as DjangoQuerySet, Model as DjangoModel
|
||||||
|
from django.db.models.manager import BaseManager
|
||||||
from django.db.models.signals import post_save, post_delete
|
from django.db.models.signals import post_save, post_delete
|
||||||
from django.dispatch import receiver
|
from django.dispatch import receiver
|
||||||
from django.db.models import QuerySet as DjangoQuerySet, Model as DjangoModel
|
|
||||||
from statsd.defaults.django import statsd
|
from statsd.defaults.django import statsd
|
||||||
|
|
||||||
from .configuration import config
|
from .configuration import config
|
||||||
from .storages import Storage
|
from .storages import Storage
|
||||||
from .utils import lazy_class_import
|
from .utils import lazy_class_import
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from django_pg_returning.manager import UpdateReturningMixin
|
from django_pg_returning.manager import UpdateReturningMixin
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user