1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +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:
Alexandr Tatarinov
2020-06-14 21:38:43 +03:00
committed by Mariusz Felisiak
parent 88af11c58b
commit f4ac167119
8 changed files with 294 additions and 6 deletions

View File

@@ -303,6 +303,7 @@ class QuerySetSetOperationTests(TestCase):
combinators.append('intersection')
for combinator in combinators:
for operation in (
'alias',
'annotate',
'defer',
'delete',