Resolve browsable API form issues with nested serializers. Closes #3153.

This commit is contained in:
Tom Christie 2015-07-16 10:49:00 +01:00
parent c879aaf398
commit 7315ed8b00

View File

@ -72,7 +72,7 @@ class BoundField(object):
)) ))
def as_form_field(self): 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): class NestedBoundField(BoundField):