summaryrefslogtreecommitdiff
path: root/tests/model_formsets_regress
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-01-02 18:18:19 -0500
committerGitHub <noreply@github.com>2019-01-02 18:18:19 -0500
commit0004daa536890fdb389c895baaa21bea6a1f7073 (patch)
tree9f66a0ce81466d8fa7043e70f0d96b9cc3350473 /tests/model_formsets_regress
parent5bbf31634faad13658dc7bcaeb8139d8625e4349 (diff)
Used 4 space hanging indent for dictionaries.
Thanks Mariusz Felisiak for auditing.
Diffstat (limited to 'tests/model_formsets_regress')
-rw-r--r--tests/model_formsets_regress/tests.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/model_formsets_regress/tests.py b/tests/model_formsets_regress/tests.py
index 0f86bbdb06..2232977481 100644
--- a/tests/model_formsets_regress/tests.py
+++ b/tests/model_formsets_regress/tests.py
@@ -296,10 +296,12 @@ class FormsetTests(TestCase):
def test_extraneous_query_is_not_run(self):
Formset = modelformset_factory(Network, fields="__all__")
- data = {'test-TOTAL_FORMS': '1',
- 'test-INITIAL_FORMS': '0',
- 'test-MAX_NUM_FORMS': '',
- 'test-0-name': 'Random Place'}
+ data = {
+ 'test-TOTAL_FORMS': '1',
+ 'test-INITIAL_FORMS': '0',
+ 'test-MAX_NUM_FORMS': '',
+ 'test-0-name': 'Random Place',
+ }
with self.assertNumQueries(1):
formset = Formset(data, prefix="test")
formset.save()