Skip to content

Support for fields = '__all__' #39

@kyleobrien91

Description

@kyleobrien91

I couldn't find an indication on Github, ReadtheDocs or in the code that suggests that there is support for this.

Basically, in the Meta class of a serializer, you can specify fields = 'all' to indicate that the serializer should represent all fields in its return.

Similarly, I'm keen to see if we can currently use something like filter_fields = '__all__' in the view/viewset definition.

The behaviour will then essentially automatically allow filtering on all model fields for that viewset.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions