From c58ed2418743e6d49967bdcf0eb4fa5eaf2bf302 Mon Sep 17 00:00:00 2001 From: M1ha Date: Wed, 16 Oct 2019 10:27:19 +0500 Subject: [PATCH] Bugfix for old django, expecting manager to be instance of models.Manager --- src/django_clickhouse/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/django_clickhouse/models.py b/src/django_clickhouse/models.py index 61594b9..841e6da 100644 --- a/src/django_clickhouse/models.py +++ b/src/django_clickhouse/models.py @@ -7,7 +7,8 @@ from typing import Optional, Any, Type, Set import six from django.db import transaction -from django.db.models.manager import BaseManager, Manager +from django.db.models.manager import BaseManager +from django.db.models import 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