drf-dynamic-fields icon indicating copy to clipboard operation
drf-dynamic-fields copied to clipboard

Dynamically select only a subset of fields per DRF resource, either using a whitelist or a blacklist.

Results 8 drf-dynamic-fields issues
Sort by recently updated
recently updated
newest added

```python class ServiceSerializer(DynamicFieldsMixin, serializers.ModelSerializer): stretch = serializers.SerializerMethodField() class Meta: model = Service fields = ['id', 'stretch', 'name'] def get_stretch(self, obj): ... ``` I can't skip the stretch field or select...

I have try to using dynamic fields in POST method and i got an error caused there is a required field are not on the fields selection. I think this...

Thanks for writing and maintaining this incredibly useful library. I recently ran into a situation where I need to be able to control my serialization dynamically outside of just using...

enhancement

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...

enhancement

# Why this I really like the flexibility that **drf-dynamic-fields** provides on a request level, but I found it lacking an internal way to specify this directly on a Serializer...

@jtrain In this PR, based on your work in [#43](https://github.com/dbrgn/drf-dynamic-fields/pull/43), I fixed the logic related to serializer level computation for serializers using `ListSerializer`. I also refined the implementation, for example,...

#42 replacement for this PR @albertisfu here is an alternative approach where we do allow each serializer the ability to filter itself instead of orchestrating the filtering from the parent....

Hi! We use this package on our API at CourtListener.com, where we provide a public API used by many people and organizations. We're getting two related requests from users that...