diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-22 06:01:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-22 06:01:11 +0200 |
| commit | 779cd28acb1f7eb06f629c0ea4ded99b5ebb670a (patch) | |
| tree | bbb25f0c59749eb0d1688bd65f595ee8a0e0d0c0 /django/db/backends/postgresql/operations.py | |
| parent | 78b5c9075348aa12da2e024f6ece29d1d652dfdd (diff) | |
Fixed #34840 -- Avoided casting string base fields on PostgreSQL.
Thanks Alex Vandiver for the report.
Regression in 09ffc5c1212d4ced58b708cbbf3dfbfb77b782ca.
Diffstat (limited to 'django/db/backends/postgresql/operations.py')
| -rw-r--r-- | django/db/backends/postgresql/operations.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index 93eb982f4b..4a42126e81 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -154,14 +154,6 @@ class DatabaseOperations(BaseDatabaseOperations): def lookup_cast(self, lookup_type, internal_type=None): lookup = "%s" - - if lookup_type == "isnull" and internal_type in ( - "CharField", - "EmailField", - "TextField", - ): - return "%s::text" - # Cast text lookups to text to allow things like filter(x__contains=4) if lookup_type in ( "iexact", |
