Skip to content

Releases: MaxDude132/drf-serializer-prefetch

v1.1.12

09 Apr 17:59
889f72b

Choose a tag to compare

Removes a leftover print statement

v1.1.11

11 Mar 17:41

Choose a tag to compare

Bugfix:

  • Handle ManyToManyRelation properly when keeping the default of returning IDs.

v1.1.10

19 Feb 20:37

Choose a tag to compare

Bugfix:

  • Fix issue when using with non-model serializers

v1.1.9

08 Dec 18:41
70a5694

Choose a tag to compare

  • Fixes issue with naming convention of ManyToMany reverse relations (#26)

v1.1.8

21 Nov 20:54
cfc070b

Choose a tag to compare

  • Fix issue when using a DictField with a ModelSerializer as child where the prefetching would not work (#23)

v1.1.7

09 Nov 20:19

Choose a tag to compare

  • Fix issue when using a tuple as prefetch_related attribute

v1.1.6

09 Nov 13:57

Choose a tag to compare

  • Fix issue when the source is a property or a callable (it still tried to prefetch it, which failed)
  • Add parameter prefetch_source to 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_attr properly

v1.1.5

28 Oct 15:41
e5509ca

Choose a tag to compare

  • Fix non-model serializer fields being inclided in the prefetching

v1.1.4

19 Oct 03:08

Choose a tag to compare

  • 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

25 Aug 16:07
c2d0c2f

Choose a tag to compare

This release adds the possibility to force a parameter to be prefetched instead of selected, by adding the parameter force_prefetch on the serializer.