mirror of
https://github.com/django/django.git
synced 2025-09-18 08:20:10 +00:00
Refs #27795 -- Removed unneeded force_text calls
Thanks Tim Graham for the review.
This commit is contained in:
parent
86de930f41
commit
8346680e1c
42 changed files with 75 additions and 132 deletions
|
@ -166,8 +166,7 @@ def lazystr(text):
|
|||
"""
|
||||
Shortcut for the common case of a lazy callable that returns str.
|
||||
"""
|
||||
from django.utils.encoding import force_text # Avoid circular import
|
||||
return lazy(force_text, str)(text)
|
||||
return lazy(str, str)(text)
|
||||
|
||||
|
||||
def keep_lazy(*resultclasses):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue