summaryrefslogtreecommitdiff
path: root/tests/admin_changelist
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2026-02-06 11:06:17 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2026-02-10 16:04:24 -0500
commitd007fcf7291cc3c24d4545e23c759bde22b6a8a6 (patch)
tree0ed3491b9e2e0d61694eff2535c99e1eded34b27 /tests/admin_changelist
parent64a4d8ad005721b17fafd3399bdf49d7d0f94455 (diff)
Modified tests to format PKs with %s rather than %d.
It's how Django formats values internally and makes tests compatible with databases that use non-integer primary keys.
Diffstat (limited to 'tests/admin_changelist')
-rw-r--r--tests/admin_changelist/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_changelist/tests.py b/tests/admin_changelist/tests.py
index 330859bcf4..626558f496 100644
--- a/tests/admin_changelist/tests.py
+++ b/tests/admin_changelist/tests.py
@@ -418,7 +418,7 @@ class ChangeListTests(TestCase):
# make sure that hidden fields are in the correct place
hiddenfields_div = (
'<div class="hiddenfields">'
- '<input type="hidden" name="form-0-id" value="%d" id="id_form-0-id">'
+ '<input type="hidden" name="form-0-id" value="%s" id="id_form-0-id">'
"</div>"
) % new_child.id
self.assertInHTML(