Commit c696b0ba by José Padilla

Fix possible nested array fields

parent 720d154c
...@@ -998,7 +998,7 @@ class ModelSerializer(Serializer): ...@@ -998,7 +998,7 @@ class ModelSerializer(Serializer):
field_kwargs.pop('allow_blank', None) field_kwargs.pop('allow_blank', None)
if postgres_fields and isinstance(model_field, postgres_fields.ArrayField): if postgres_fields and isinstance(model_field, postgres_fields.ArrayField):
child_model_field = model_field.base_field.base_field child_model_field = model_field.base_field
child_field_class, child_field_kwargs = self.build_standard_field( child_field_class, child_field_kwargs = self.build_standard_field(
'child', child_model_field 'child', child_model_field
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment