mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Refs #23919 -- Removed unneeded force_str calls
This commit is contained in:
parent
bf1c957027
commit
dc8834cad4
44 changed files with 100 additions and 167 deletions
|
@ -217,13 +217,9 @@ class UtilsTests(SimpleTestCase):
|
|||
("History", None)
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
label_for_field("__unicode__", Article),
|
||||
"article"
|
||||
)
|
||||
self.assertEqual(
|
||||
label_for_field("__str__", Article),
|
||||
str("article")
|
||||
"article"
|
||||
)
|
||||
|
||||
with self.assertRaises(AttributeError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue