You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if style is defined as a kwarg on a mongoengine field, utils.get_field_kwargs() method does not build the DRF serializer field with it. To achieve this one has to wrap serializers.build_field() and update the field_kwargs dictionary, which seems unnecessary?
regoawt
changed the title
style not included in utils.get_field_kwargs(); not aligned to DRF core argumentsstyle not included in utils.get_field_kwargs(); not aligned to DRF core arguments
Feb 17, 2022
Currently, if
style
is defined as a kwarg on a mongoengine field,utils.get_field_kwargs()
method does not build the DRF serializer field with it. To achieve this one has to wrapserializers.build_field()
and update thefield_kwargs
dictionary, which seems unnecessary?Is this intended behaviour?
The
style
argument is listed as a DRF 'core argument' on the base serializer field:https://www.django-rest-framework.org/api-guide/fields/#core-arguments
The text was updated successfully, but these errors were encountered: