Possible fix

This commit is contained in:
Daniel Hahler 2017-05-16 12:07:04 +02:00
parent 2b199f7588
commit 09f62e11a0

View File

@ -1010,7 +1010,7 @@ class ModelSerializer(Serializer):
continue
extra_field_kwargs = extra_kwargs.get(field_name, {})
source = extra_field_kwargs.get('source') or field_name
source = extra_field_kwargs.get('source', '*') != '*' or field_name
# Determine the serializer field class and keyword arguments.
field_class, field_kwargs = self.build_field(