Skip to content

Releases: vintasoftware/django-virtual-models

v0.2.0

19 Jan 16:57
Compare
Choose a tag to compare
  • Add support to nested prefetch lookups like v.VirtualModel(manager=User.objects, lookup="course__facilitators")
    • Warning: this will remain undocumented for now, because the behavior is strange:
      the prefetch is made inside course in this case, due to Django behavior.
  • Add parameter serializer_context to be used in v.Annotation and get_prefetch_queryset.

v0.1.6

31 May 21:03
Compare
Choose a tag to compare
  • Fix support for custom manager in VirtualModel initialization
  • Separate method for _build_prefetch to allow overrides

v0.1.5

29 May 19:32
Compare
Choose a tag to compare
  • More robust is_preloaded check
  • Add Django 4.2 to tests.

v0.1.4

28 Oct 21:29
Compare
Choose a tag to compare

Add Python 3.11 to tests.

v0.1.3

21 Oct 00:09
Compare
Choose a tag to compare
  • README update.

v0.1.2

20 Oct 23:22
Compare
Choose a tag to compare
  • Avoid redundant to_attr when nesting Virtual Models
  • Refactor fields.py to use self.parent and self.field_name
  • Simplify docs and tests by not using manager param

v0.1.1

16 Oct 00:57
Compare
Choose a tag to compare
  • Handle additional case for related primary key field.

v0.1.0

15 Oct 00:39
Compare
Choose a tag to compare
  • Change the hints API from prefetch.Required to hints.Virtual.

v0.0.2

07 Oct 14:19
Compare
Choose a tag to compare
Bump version: 0.0.1 → 0.0.2