diff options
| author | Simon Charette <charette.s@gmail.com> | 2013-07-18 22:01:51 -0400 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2013-07-19 23:31:15 -0400 |
| commit | 415a36947cb4b8b61230698e13cca2df9400e245 (patch) | |
| tree | 9591e0724eb62931c8cb3990cb44616e1a3b3289 /tests/model_formsets | |
| parent | 6d52844b9b3c0bd18eea03ac9dc499782b84c36b (diff) | |
Fixed #20765 -- Set small values of `step` using exponential notation.
Browsers parse small factors of 10 as 0 under decimal notation.
Thanks to Trac alias matklad for the report and Claude Paroz for the review.
Diffstat (limited to 'tests/model_formsets')
| -rw-r--r-- | tests/model_formsets/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/model_formsets/tests.py b/tests/model_formsets/tests.py index 09a3ba1778..4411bbf59a 100644 --- a/tests/model_formsets/tests.py +++ b/tests/model_formsets/tests.py @@ -576,7 +576,7 @@ class ModelFormsetTest(TestCase): formset = AuthorBooksFormSet2(instance=author) self.assertEqual(len(formset.forms), 1) self.assertHTMLEqual(formset.forms[0].as_p(), - '<p><label for="id_bookwithcustompk_set-0-my_pk">My pk:</label> <input id="id_bookwithcustompk_set-0-my_pk" type="number" name="bookwithcustompk_set-0-my_pk" /></p>\n' + '<p><label for="id_bookwithcustompk_set-0-my_pk">My pk:</label> <input id="id_bookwithcustompk_set-0-my_pk" type="number" name="bookwithcustompk_set-0-my_pk" step="1" /></p>\n' '<p><label for="id_bookwithcustompk_set-0-title">Title:</label> <input id="id_bookwithcustompk_set-0-title" type="text" name="bookwithcustompk_set-0-title" maxlength="100" /><input type="hidden" name="bookwithcustompk_set-0-author" value="1" id="id_bookwithcustompk_set-0-author" /></p>') data = { |
