From 272729153c1816a93f9322ffd5188ccd87a009c3 Mon Sep 17 00:00:00 2001 From: Kobi Tal Date: Mon, 18 Jul 2022 17:55:51 +0300 Subject: [PATCH 1/4] Add model to QuerySet to support django-rest-framework 3 --- src/infi/clickhouse_orm/query.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/infi/clickhouse_orm/query.py b/src/infi/clickhouse_orm/query.py index 897d45a..1998e2d 100644 --- a/src/infi/clickhouse_orm/query.py +++ b/src/infi/clickhouse_orm/query.py @@ -292,6 +292,7 @@ class QuerySet(object): Initializer. It is possible to create a queryset like this, but the standard way is to use `MyModel.objects_in(database)`. """ + self.model = model_cls self._model_cls = model_cls self._database = database self._order_by = [] From 359809e819f6761f74d09422ba840f983f5f970f Mon Sep 17 00:00:00 2001 From: Kobi Tal Date: Tue, 19 Jul 2022 10:56:22 +0300 Subject: [PATCH 2/4] Releasing v2.1.2 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5beb084..fda9a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Change Log ========== +v2.1.2 +------ +- Add model attribute to QuerySet to support django-rest-framework 3 + v2.1.1 ------ - Improve support of ClickHouse v21.9 (mangototango) From 7b15567a62351145350636abf9b89a7700b874bf Mon Sep 17 00:00:00 2001 From: Kobi Tal Date: Tue, 19 Jul 2022 10:59:30 +0300 Subject: [PATCH 3/4] Bump python version to 3.8.12 --- buildout.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildout.cfg b/buildout.cfg index 872c54b..f3dac32 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -30,7 +30,7 @@ homepage = https://github.com/Infinidat/infi.clickhouse_orm [isolated-python] recipe = infi.recipe.python -version = v3.8.0.2 +version = v3.8.12 [setup.py] recipe = infi.recipe.template.version From 2777d3084cccf86b264fa509b3488cd42c1abcf1 Mon Sep 17 00:00:00 2001 From: Kobi Tal Date: Tue, 19 Jul 2022 11:06:19 +0300 Subject: [PATCH 4/4] Releasing v2.1.2 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fda9a98..266d2cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ Change Log v2.1.2 ------ -- Add model attribute to QuerySet to support django-rest-framework 3 +- Add `QuerySet.model` to support django-rest-framework 3 v2.1.1 ------