diff options
author | sean_c_hsu <s8901489@gmail.com> | 2020-06-15 00:58:06 +0800 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-19 20:17:42 +0100 |
commit | 0f6946495a8ec955b471ca1baaf408ceb53d4796 (patch) | |
tree | c3d867d141074fb990d3140e02fbaa9d717e8ff2 /django/db/backends/postgresql/features.py | |
parent | ba9de2e74edb155067dc96a3369305c9ef4ba385 (diff) | |
download | django-0f6946495a8ec955b471ca1baaf408ceb53d4796.tar.gz |
Fixed #31685 -- Added support for updating conflicts to QuerySet.bulk_create().
Thanks Florian Apolloner, Chris Jerdonek, Hannes Ljungberg, Nick Pope,
and Mariusz Felisiak for reviews.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r-- | django/db/backends/postgresql/features.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py index 097d41a45b..1ce73fb0a8 100644 --- a/django/db/backends/postgresql/features.py +++ b/django/db/backends/postgresql/features.py @@ -57,6 +57,8 @@ class DatabaseFeatures(BaseDatabaseFeatures): supports_deferrable_unique_constraints = True has_json_operators = True json_key_contains_list_matching_requires_list = True + supports_update_conflicts = True + supports_update_conflicts_with_target = True test_collations = { 'non_default': 'sv-x-icu', 'swedish_ci': 'sv-x-icu', |