Skip to content

Commit

Permalink
fix broken feature flags since django-3.0 refs #73
Browse files Browse the repository at this point in the history
  • Loading branch information
shimizukawa committed Mar 7, 2021
1 parent a366d73 commit a84cb50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
-------------------
Expand Down
6 changes: 4 additions & 2 deletions django_redshift_backend/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a84cb50

Please sign in to comment.