Releases: MaxDude132/drf-serializer-prefetch
Releases · MaxDude132/drf-serializer-prefetch
v1.1.12
v1.1.11
Bugfix:
- Handle ManyToManyRelation properly when keeping the default of returning IDs.
v1.1.10
Bugfix:
- Fix issue when using with non-model serializers
v1.1.9
v1.1.8
v1.1.7
- Fix issue when using a tuple as prefetch_related attribute
v1.1.6
- Fix issue when the source is a property or a callable (it still tried to prefetch it, which failed)
- Add parameter
prefetch_sourceto tell the serialzier what to fetch for properties and callables - Fix issue when joining a prefetch with a string where it would not take into account the
to_attrproperly
v1.1.5
- Fix non-model serializer fields being inclided in the prefetching
v1.1.4
- Fixes an issue with Prefetch in prefetch_related when the field would have been in select_related
- Allows prefetching in non-model serializers when Model Serializers are used as its fields.
- Non-model serializers now take into account the sub serializers and their prefetches
v1.1.3
This release adds the possibility to force a parameter to be prefetched instead of selected, by adding the parameter force_prefetch on the serializer.