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

Dynamically set fields and expand nested resources in Django REST Framework serializers.

Results 39 drf-flex-fields issues
Sort by recently updated
recently updated
newest added

I would expect that when instantiating a serializer and explicitly setting the expand argument, that would be respected no matter what. Instead, the behavior is that if there is an...

Bumps [django](https://github.com/django/django) from 3.2.5 to 3.2.15. Commits 653a7bd [3.2.x] Bumped version for 3.2.15 release. b3e4494 [3.2.x] Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header. cb7fbac [3.2.x] Fixed collation tests on...

dependencies

Just wondering, I was trying to update to the latest release 0.9.9 but I cannot find it on Pypi

When calling a ViewSet that has both the `FlexFieldsFilterBackend` and a serializer containing a field pointing to a `GenericForeignKey`, we get the error : `AttributeError: 'GenericForeignKey' object has no attribute...

Fix #104, FlexFieldsFilterBackend now handles GenericForeignKey correctly by routing it into the prefetch_related fields.

Hello, I have a few large `SerializerMethodFields` on my serializer, which return iterables that are not a FK to my model. Something like this: ``` Class FooSerializer(FlexFieldsModelSerializer): things = SerializerMethodField()...

- Populate nested expands fields - Correct schema for array This also has the added benefit of showing up as a dropdown list in many swagger UIs ![image](https://user-images.githubusercontent.com/2836129/177402899-2d5f95c3-3efb-4d1c-a810-018dbe33a077.png)

Hello and hope you're well! I wanted to raise a discussion on how deferred fields are currently defined and whether a less verbose approach could be supported? At the moment...

Would it be possible to have OpenAPI support for query parameters? At the moment this is provided by the `FlexFieldsFilterBackend` however the filter backend also implements the (not thoroughly tested)...

When passing omitted fields to the serializer in a views' `get_serializer` method, it still seems to be possible to save/update said fields, even though they're not returned in the Response....