From a84cb500ccc2ae90b718c3ae88c561ac6ec5f4df Mon Sep 17 00:00:00 2001 From: shimizukawa Date: Sun, 7 Mar 2021 20:41:12 +0900 Subject: [PATCH] fix broken feature flags since django-3.0 refs #73 --- CHANGES.rst | 1 + django_redshift_backend/base.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 2a39b82..8153d95 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,7 @@ CHANGES Bug Fixes: * #74: set supports_aggregate_filter_clause=False (since Django-2.0) to disable FILTER WHERE syntax. Thanks to Michael Wheeler. +* #73: fix broken feature flags since Django-3.0: can_return_columns_from_insert and can_return_rows_from_bulk_insert. Thanks to Agustín Magaña. 2.0.0 (2021/01/04) ------------------- diff --git a/django_redshift_backend/base.py b/django_redshift_backend/base.py index fd0bec1..57468bb 100644 --- a/django_redshift_backend/base.py +++ b/django_redshift_backend/base.py @@ -32,8 +32,10 @@ class DatabaseFeatures(BasePGDatabaseFeatures): - can_return_id_from_insert = False - can_return_ids_from_bulk_insert = False + can_return_id_from_insert = False # old name until django-2.x + can_return_ids_from_bulk_insert = False # old name until django-2.x + can_return_columns_from_insert = False # new name since django-3.0 + can_return_rows_from_bulk_insert = False # new name since django-3.0 has_select_for_update = False supports_column_check_constraints = False can_distinct_on_fields = False