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