diff options
| author | Tim Graham <timograham@gmail.com> | 2026-04-24 11:00:41 -0400 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-04-24 11:46:53 -0400 |
| commit | ad073338d02fce884301d159f30eaf17c7f2d246 (patch) | |
| tree | 048bc6422a0b8a57019468a8e003a371523ef150 | |
| parent | 29eac2648cbc8f4000a391bf6424bc32979b0149 (diff) | |
Reverted inadvertent changes to PK formatting in tests.
Bad conflict resolution in 63c56cda133a85a158502891c40465bc0331d3d9
reverted bits of d007fcf7291cc3c24d4545e23c759bde22b6a8a6.
| -rw-r--r-- | tests/model_formsets/tests.py | 4 | ||||
| -rw-r--r-- | tests/modeladmin/tests.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/model_formsets/tests.py b/tests/model_formsets/tests.py index 75e4a42163..f5049e0cf7 100644 --- a/tests/model_formsets/tests.py +++ b/tests/model_formsets/tests.py @@ -1268,8 +1268,8 @@ class ModelFormsetTest(TestCase): '<p><label for="id_form-0-owner">Owner:</label>' '<select name="form-0-owner" id="id_form-0-owner">' '<option value="" selected>- Select an option -</option>' - '<option value="%d">Joe Perry at Giordanos</option>' - '<option value="%d">Jack Berry at Giordanos</option>' + '<option value="%s">Joe Perry at Giordanos</option>' + '<option value="%s">Jack Berry at Giordanos</option>' "</select></p>" '<p><label for="id_form-0-age">Age:</label>' '<input type="number" name="form-0-age" id="id_form-0-age" min="0"></p>' diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 5ca7999bf0..81119a27bf 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -662,7 +662,7 @@ class ModelAdminTests(TestCase): '<select data-context="available-source" ' 'name="main_band" id="id_main_band" required>' '<option value="" selected>- Select an option -</option>' - '<option value="%d">The Doors</option>' + '<option value="%s">The Doors</option>' "</select></div>" % self.band.id, ) |
