From 8f10ceaa907f3f608494f782f65070d0bb8b9587 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Fri, 1 May 2020 15:54:15 +0100 Subject: Changed `'%s' % value` pattern to `str(value)`. --- tests/admin_widgets/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/admin_widgets') 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. -- cgit v1.2.1