Skip to content

Releases: vintasoftware/django-virtual-models

v0.4.0

06 Jun 14:24
fd36f45
Compare
Choose a tag to compare

What's Changed

  • Rename VirtualModel user field to avoid conflict by @hugobessa in #38

Full Changelog: v0.3.0...v0.4.0

v0.3.0

15 May 13:27
ddb2108
Compare
Choose a tag to compare

What's Changed

  • Include py.typed file for type hints
  • Add support to Python 3.12 and 3.13
  • Drop support to Python 3.8 and 3.9
  • Add support to Django 5.0, 5.1, and 5.2
  • Drop support to Django 3.2, 4.0, and 4.1

Full Changelog: v0.2.0...v0.3.0

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.