Skip to content

"Fields" param in settings #24

@plopidou

Description

@plopidou

Hello,

An idea that would be nice: the ability to set the GET param names in settings. Something like the default:

DRF_DYNAMIC_FIELDS_GET_NAMES = ['fields', 'omit]

Which could be overriden in the local settings with something like:

DRF_DYNAMIC_FIELDS_GET_NAMES = ['__fields', '__omit]

So that the risk of the GET param colliding with model fields named "fields" and "omit" is minimised when using drf_dynamic_fields alongside https://github.com/carltongibson/django-filter, for example.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions