summaryrefslogtreecommitdiff
path: root/tests/admin_widgets
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2020-05-01 15:54:15 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-04 08:27:18 +0200
commit8f10ceaa907f3f608494f782f65070d0bb8b9587 (patch)
treef6ca48e8809f40377fd9b9ac97ef0f48734b1477 /tests/admin_widgets
parent7668f9bce921f66e8e572938154221cd687aaa4a (diff)
downloaddjango-8f10ceaa907f3f608494f782f65070d0bb8b9587.tar.gz
Changed `'%s' % value` pattern to `str(value)`.
Diffstat (limited to 'tests/admin_widgets')
-rw-r--r--tests/admin_widgets/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_widgets/tests.py b/tests/admin_widgets/tests.py
index b255d2188a..3d9f396d2d 100644
--- a/tests/admin_widgets/tests.py
+++ b/tests/admin_widgets/tests.py
@@ -237,7 +237,7 @@ class AdminForeignKeyRawIdWidget(TestDataMixin, TestCase):
pk = band.pk
band.delete()
post_data = {
- "main_band": '%s' % pk,
+ "main_band": str(pk),
}
# Try posting with a nonexistent pk in a raw id field: this
# should result in an error message, not a server exception.