diff options
| author | Josh Smeaton <josh.smeaton@gmail.com> | 2015-02-11 16:38:02 +1100 |
|---|---|---|
| committer | Josh Smeaton <josh.smeaton@gmail.com> | 2015-02-12 08:53:03 +1100 |
| commit | a6ea62aeafd4512f6d13aeda908f7622776a4537 (patch) | |
| tree | 27059733fa267e00d7d2bd4058d2f8aef88e2ca0 /tests/db_functions | |
| parent | 343c0875338128dad162d4806fe908fb31404d14 (diff) | |
[1.8.x] Refs #14030 -- Improved expression support for python values
Backport of e2d6e14662d780383e18066a3182155fb5b7747b from master
Diffstat (limited to 'tests/db_functions')
| -rw-r--r-- | tests/db_functions/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/db_functions/tests.py b/tests/db_functions/tests.py index 9e7d27899a..f07e8770f0 100644 --- a/tests/db_functions/tests.py +++ b/tests/db_functions/tests.py @@ -281,7 +281,7 @@ class FunctionTests(TestCase): def test_substr_with_expressions(self): Author.objects.create(name='John Smith', alias='smithj') Author.objects.create(name='Rhonda') - authors = Author.objects.annotate(name_part=Substr('name', V(5), V(3))) + authors = Author.objects.annotate(name_part=Substr('name', 5, 3)) self.assertQuerysetEqual( authors.order_by('name'), [ ' Sm', |
