mirror of
https://github.com/django/django.git
synced 2025-10-30 00:56:09 +00:00
[3.1.x] 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.
Backport of 0be51d2226 from master
This commit is contained in:
@@ -121,11 +121,6 @@ class SimpleDatabaseOperationTests(SimpleTestCase):
|
||||
with self.assertRaisesMessage(NotImplementedError, self.may_require_msg % 'datetime_extract_sql'):
|
||||
self.ops.datetime_extract_sql(None, None, None)
|
||||
|
||||
def test_json_cast_text_sql(self):
|
||||
msg = self.may_require_msg % 'json_cast_text_sql'
|
||||
with self.assertRaisesMessage(NotImplementedError, msg):
|
||||
self.ops.json_cast_text_sql(None)
|
||||
|
||||
|
||||
class DatabaseOperationTests(TestCase):
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user