Skip to content

Commit 7315ed8

Browse files
committed
Resolve browsable API form issues with nested serializers. Closes #3153.
1 parent c879aaf commit 7315ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/utils/serializer_helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __repr__(self):
7272
))
7373

7474
def as_form_field(self):
75-
return BoundField(self._field, force_text(self.value), self.errors, self._prefix)
75+
return self.__class__(self._field, force_text(self.value), self.errors, self._prefix)
7676

7777

7878
class NestedBoundField(BoundField):

0 commit comments

Comments
 (0)