diff options
author | Alexandr Tatarinov <tatarinov1997@gmail.com> | 2020-06-14 21:38:43 +0300 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-31 13:19:33 +0200 |
commit | f4ac167119e8897c398527c392ed117326496652 (patch) | |
tree | 7df0826447759a792c008286314bc3477405d33d /tests/basic | |
parent | 88af11c58baf0eae2fa947a5f0733906ffe6bb38 (diff) | |
download | django-f4ac167119e8897c398527c392ed117326496652.tar.gz |
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.
Diffstat (limited to 'tests/basic')
-rw-r--r-- | tests/basic/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py index 22093f5a56..173458f5ff 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -574,6 +574,7 @@ class ManagerTest(SimpleTestCase): 'filter', 'aggregate', 'annotate', + 'alias', 'complex_filter', 'exclude', 'in_bulk', |