mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Changed '%s' % value pattern to str(value).
This commit is contained in:
committed by
Mariusz Felisiak
parent
7668f9bce9
commit
8f10ceaa90
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user