mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +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
|
@ -1756,7 +1756,7 @@ class TestModelFormsetOverridesTroughFormMeta(TestCase):
|
|||
PoetFormSet = modelformset_factory(Poet, fields="__all__", widgets=widgets)
|
||||
form = PoetFormSet.form()
|
||||
self.assertHTMLEqual(
|
||||
"%s" % form['name'],
|
||||
str(form['name']),
|
||||
'<input id="id_name" maxlength="100" type="text" class="poet" name="name" required>'
|
||||
)
|
||||
|
||||
|
@ -1767,7 +1767,7 @@ class TestModelFormsetOverridesTroughFormMeta(TestCase):
|
|||
BookFormSet = inlineformset_factory(Author, Book, widgets=widgets, fields="__all__")
|
||||
form = BookFormSet.form()
|
||||
self.assertHTMLEqual(
|
||||
"%s" % form['title'],
|
||||
str(form['title']),
|
||||
'<input class="book" id="id_title" maxlength="100" name="title" type="text" required>'
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue