mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #27795 -- Removed unneeded force_text calls
Thanks Tim Graham for the review.
This commit is contained in:
@@ -108,13 +108,12 @@ class BoundField:
|
||||
'It will be mandatory in Django 2.1.' % widget.__class__,
|
||||
RemovedInDjango21Warning, stacklevel=2,
|
||||
)
|
||||
html = widget.render(
|
||||
return widget.render(
|
||||
name=name,
|
||||
value=self.value(),
|
||||
attrs=attrs,
|
||||
**kwargs
|
||||
)
|
||||
return force_text(html)
|
||||
|
||||
def as_text(self, attrs=None, **kwargs):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user