Fix possible nested array fields

This commit is contained in:
José Padilla 2015-02-05 10:12:14 -04:00
parent 720d154c83
commit c696b0ba0c

View File

@ -998,7 +998,7 @@ class ModelSerializer(Serializer):
field_kwargs.pop('allow_blank', None)
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', child_model_field
)