serializers.py
59 KB
-
Do not ignore source when building fields dynamically · 4c2d6b9b
This commit fixes the issue when you set the keyword argument `source` and your have not set the serializer fields explicitly. Then the construction of field failed because there is not actually any model field with that name. However, you are still able to imply the name of model field by providing the `source` keyword argument.
Thodoris Sotiropoulos committed