kaoslabsinc / dj-kaos-utils

Set of utilities and helpers for rapid development of Django applications
https://dj-kaos-utils.readthedocs.io
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

WritableNestedSerializer allow filtering on lookup_values #12

Open gerdemb opened 1 year ago

gerdemb commented 1 year ago

Allow filtering on lookup_values. When data is not a dict, WritableNestedSerializer behaves like SlugRelatedField(slug_field=lookup_value, queryset=Model.objects.all()). We might want to allow setting a different queryset)