summaryrefslogtreecommitdiff
path: root/tests/annotations
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-03-16 10:54:34 +0100
committerGitHub <noreply@github.com>2018-03-16 10:54:34 +0100
commit362813d6287925b8f63f0b107c55a74d95f5825e (patch)
treeefd69a3deb9e837624279e5abfdd8d55d57dcd7c /tests/annotations
parentaeb8c381789ad93866223f8bd07d09ae5e2edd9e (diff)
downloaddjango-362813d6287925b8f63f0b107c55a74d95f5825e.tar.gz
Fixed hanging indentation in various code.
Diffstat (limited to 'tests/annotations')
-rw-r--r--tests/annotations/tests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/annotations/tests.py b/tests/annotations/tests.py
index ee1c50cfdf..d7759c8552 100644
--- a/tests/annotations/tests.py
+++ b/tests/annotations/tests.py
@@ -283,9 +283,10 @@ class NonAggregateAnnotationTestCase(TestCase):
def test_annotation_reverse_m2m(self):
books = Book.objects.annotate(
- store_name=F('store__name')).filter(
- name='Practical Django Projects').order_by(
- 'store_name')
+ store_name=F('store__name'),
+ ).filter(
+ name='Practical Django Projects',
+ ).order_by('store_name')
self.assertQuerysetEqual(
books, [
@@ -497,7 +498,8 @@ class NonAggregateAnnotationTestCase(TestCase):
F('ticker_name'),
F('description'),
Value('No Tag'),
- function='COALESCE')
+ function='COALESCE',
+ )
).annotate(
tagline_lower=Lower(F('tagline'), output_field=CharField())
).order_by('name')