mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).
This commit is contained in:
committed by
Tim Graham
parent
bf26f66029
commit
2162f0983d
@@ -17,7 +17,7 @@ class DatabaseOperationTests(SimpleTestCase):
|
||||
def test_distinct_on_fields(self):
|
||||
msg = 'DISTINCT ON fields is not supported by this database backend'
|
||||
with self.assertRaisesMessage(NotSupportedError, msg):
|
||||
self.ops.distinct_sql(['a', 'b'])
|
||||
self.ops.distinct_sql(['a', 'b'], None)
|
||||
|
||||
def test_deferrable_sql(self):
|
||||
self.assertEqual(self.ops.deferrable_sql(), '')
|
||||
|
||||
Reference in New Issue
Block a user