mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Changed '%s' % value pattern to str(value).
This commit is contained in:
parent
7668f9bce9
commit
8f10ceaa90
13 changed files with 36 additions and 35 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue