mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Resolve browsable API form issues with nested serializers. Closes #3153.
This commit is contained in:
parent
c879aaf398
commit
7315ed8b00
|
@ -72,7 +72,7 @@ class BoundField(object):
|
|||
))
|
||||
|
||||
def as_form_field(self):
|
||||
return BoundField(self._field, force_text(self.value), self.errors, self._prefix)
|
||||
return self.__class__(self._field, force_text(self.value), self.errors, self._prefix)
|
||||
|
||||
|
||||
class NestedBoundField(BoundField):
|
||||
|
|
Loading…
Reference in New Issue
Block a user