mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27719 -- Added QuerySet.alias() to allow creating reusable aliases.
QuerySet.alias() allows creating reusable aliases for expressions that don't need to be selected but are used for filtering, ordering, or as a part of complex expressions. Thanks Simon Charette for reviews.
This commit is contained in:
committed by
Mariusz Felisiak
parent
88af11c58b
commit
f4ac167119
@@ -303,6 +303,7 @@ class QuerySetSetOperationTests(TestCase):
|
||||
combinators.append('intersection')
|
||||
for combinator in combinators:
|
||||
for operation in (
|
||||
'alias',
|
||||
'annotate',
|
||||
'defer',
|
||||
'delete',
|
||||
|
||||
Reference in New Issue
Block a user