summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/operations.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /django/contrib/postgres/operations.py
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
downloaddjango-7119f40c9881666b6f9b5cf7df09ee1d21cc8344.tar.gz
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'django/contrib/postgres/operations.py')
-rw-r--r--django/contrib/postgres/operations.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/contrib/postgres/operations.py b/django/contrib/postgres/operations.py
index 374f5ee1ec..b2d6d9f95a 100644
--- a/django/contrib/postgres/operations.py
+++ b/django/contrib/postgres/operations.py
@@ -185,9 +185,8 @@ class CollationOperation(Operation):
)
def create_collation(self, schema_editor):
- if (
- self.deterministic is False
- and not schema_editor.connection.features.supports_non_deterministic_collations
+ if self.deterministic is False and not (
+ schema_editor.connection.features.supports_non_deterministic_collations
):
raise NotSupportedError(
"Non-deterministic collations require PostgreSQL 12+."