mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Replaced many smart_bytes by force_bytes
In all those occurrences, we didn't care about preserving the lazy status of the strings, but we really wanted to obtain a real bytestring.
This commit is contained in:
parent
9eafb6592e
commit
ebc773ada3
32 changed files with 74 additions and 77 deletions
|
@ -171,7 +171,7 @@ class UtilTests(unittest.TestCase):
|
|||
)
|
||||
self.assertEqual(
|
||||
label_for_field("__str__", Article),
|
||||
b"article"
|
||||
str("article")
|
||||
)
|
||||
|
||||
self.assertRaises(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue