mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Possible fix
This commit is contained in:
parent
2b199f7588
commit
09f62e11a0
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user