From 746321e6b6f7dfd9142add80b37e5527646ca53f Mon Sep 17 00:00:00 2001 From: M1ha Date: Wed, 16 Oct 2019 10:27:29 +0500 Subject: [PATCH] Bugfix for old django, expecting manager to be instance of models.Manager --- src/django_clickhouse/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/django_clickhouse/models.py b/src/django_clickhouse/models.py index 841e6da..7ebd2e5 100644 --- a/src/django_clickhouse/models.py +++ b/src/django_clickhouse/models.py @@ -7,18 +7,17 @@ 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 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.dispatch import receiver -from django.db.models import QuerySet as DjangoQuerySet, Model as DjangoModel from statsd.defaults.django import statsd from .configuration import config from .storages import Storage from .utils import lazy_class_import - try: from django_pg_returning.manager import UpdateReturningMixin except ImportError: