mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).
This commit is contained in:
parent
bf26f66029
commit
2162f0983d
15 changed files with 260 additions and 38 deletions
|
@ -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(), '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue