Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.32 KB

CHANGELOG.md

File metadata and controls

52 lines (31 loc) · 1.32 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[0.2.0]

  • 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.

[0.1.6]

  • Fix support for custom manager in VirtualModel initialization
  • Separate method for _build_prefetch to allow overrides.

[0.1.5]

  • More robust is_preloaded check
  • Add Django 4.2 to tests.

[0.1.4]

  • Add Python 3.11 to tests.

[0.1.3]

  • README update.

[0.1.2]

  • 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

[0.1.1]

  • Handle additional case for related primary key field.

[0.1.0]

  • Change the hints API from prefetch.Required to hints.Virtual.

[0.0.2]

  • Fix documentation link on PyPI.

[0.0.1]

  • First release.