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?
changed the title [-]`style` not included in utils.get_field_kwargs(); not aligned to DRF core arguments[/-][+]`style` not included in `utils.get_field_kwargs()`; not aligned to DRF core arguments[/+]on Feb 17, 2022
Activity
IATF commentedon Feb 17, 2022
[-]`style` not included in utils.get_field_kwargs(); not aligned to DRF core arguments[/-][+]`style` not included in `utils.get_field_kwargs()`; not aligned to DRF core arguments[/+]style
to field kwargs. #289BurkovBA commentedon Feb 17, 2022
@regoawt Hello.
I might be wrong, but I feel like
style
is a relatively new field in DRF.Thank you for your PR .Please, add unit-tests to your changes, so that we could ensure their correctness.