From 0be51d2226fce030ac9ca840535a524f41e9832c Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Fri, 28 Aug 2020 07:56:04 +0200 Subject: Fixed #31956 -- Fixed crash of ordering by JSONField with a custom decoder on PostgreSQL. Thanks Marc Debureaux for the report. Thanks Simon Charette, Nick Pope, and Adam Johnson for reviews. --- django/db/backends/postgresql/operations.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'django/db/backends/postgresql/operations.py') diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index a3442231af..1ce5755bf5 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -74,9 +74,6 @@ class DatabaseOperations(BaseDatabaseOperations): def time_trunc_sql(self, lookup_type, field_name): return "DATE_TRUNC('%s', %s)::time" % (lookup_type, field_name) - def json_cast_text_sql(self, field_name): - return '(%s)::text' % field_name - def deferrable_sql(self): return " DEFERRABLE INITIALLY DEFERRED" -- cgit v1.2.1