diff options
author | Thomas Chaumeny <t.chaumeny@gmail.com> | 2014-09-27 12:41:54 +0200 |
---|---|---|
committer | Anssi Kääriäinen <akaariai@gmail.com> | 2014-11-28 12:50:42 +0200 |
commit | 6b5d82749c57a1aae8c9e81d2b85b2cadb9ef933 (patch) | |
tree | c3f40781e1e452567a1a09126c20eff49becb899 /tests/custom_lookups | |
parent | f39b0421b406b411c3bcb58e8aa415d885fea505 (diff) | |
download | django-6b5d82749c57a1aae8c9e81d2b85b2cadb9ef933.tar.gz |
Fixed #16731 -- Made pattern lookups work properly with F() expressions
Diffstat (limited to 'tests/custom_lookups')
-rw-r--r-- | tests/custom_lookups/tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/custom_lookups/tests.py b/tests/custom_lookups/tests.py index 620db613a1..e9a205be5b 100644 --- a/tests/custom_lookups/tests.py +++ b/tests/custom_lookups/tests.py @@ -286,6 +286,9 @@ class BilateralTransformTests(TestCase): self.assertQuerysetEqual( Author.objects.filter(name__upper='doe'), ["<Author: Doe>", "<Author: doe>"], ordered=False) + self.assertQuerysetEqual( + Author.objects.filter(name__upper__contains='f'), + ["<Author: Foo>"], ordered=False) finally: models.CharField._unregister_lookup(UpperBilateralTransform) |