8000 Fix possible nested array fields · coderanger/django-rest-framework@c696b0b · GitHub
[go: up one dir, main page]

Skip to content < 8000 script type="application/json" data-target="react-partial.embeddedData">{"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit c696b0b

Browse files
committed
Fix possible nested array fields
1 parent 720d154 commit c696b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ def build_standard_field(self, field_name, model_field):
998998
field_kwargs.pop('allow_blank', None)
999999

10001000
if postgres_fields and isinstance(model_field, postgres_fields.ArrayField):
1001-
child_model_field = model_field.base_field.base_field
1001+
child_model_field = model_field.base_field
10021002
child_field_class, child_field_kwargs = self.build_standard_field(
10031003
'child', child_model_field
10041004
)

0 commit comments

Comments
 (0)
0