Releases: wagtail/django-modelcluster
Releases · wagtail/django-modelcluster
6.4.1
6.4
6.3
- Support filtering with Q objects (Shohan Dutta Roy)
- Support random ordering with
.order_by("?")(Shohan Dutta Roy) - Support
distinct()on querysets (Shohan Dutta Roy) - Support
iso_weekdayandiso_yearfield lookups (Andy Babic) - Support datetime transform expressions on
valuesandvalues_list(Andy Babic) - Fix: Correctly handle filtering on fields on related models when those fields have names that match a lookup type (Andy Babic)
- Fix: Correctly handle null foreign keys when traversing related fields (Andy Babic)
6.2.1
6.2
6.1
- Removed Django 2.2, 3.0, 3.1 & 4.0 support
- Added Django 4.2 support (Irtaza Akram)
- Fixed deprecation warning for removal of
django.utils.timezone.utc(John-Scott Atlakson) - Fix: Avoid unnecessary call to localtime for timestamps already in UTC (Stefan Hammer)
- Removed Python 3.7 support
- Add Python 3.11 and 3.12 support
6.0
- BREAKING: ClusterForm now builds no child formsets when neither
formsetsnorexclude_formsetsis specified in the Meta class, rather than building a formset for every child relation (Matt Westcott) - Removed Python 3.5 and 3.6 support
- Removed Django 2.0 and 2.1 support
- Support explicit definitions for nested formsets within ClusterForm, via a
formsetsoption on the outer formset's definition (Matt Westcott) - Add
inherit_kwargsattribute to ClusterForm child formsets (Matt Westcott)
5.3
- Avoid accessing live queryset on unsaved instances, for preliminary Django 4.1 compatibility (Matt Westcott)
- Support traversing one-to-one and many-to-one relations in
filter/order_bylookups (Andy Babic) - Implement
values()method on FakeQuerySet (Andy Babic) - Allow
values()andvalues_list()to be chained with other queryset modifiers (Andy Babic) - Fix: Fix HTML escaping behaviour on
ClusterForm.as_p()(Matt Westcott) - Fix: Match standard behaviour queryset of returning foreign keys as IDs in
values_list(Andy Babic)
5.2
- Implement
copy_clustermethod on ClusterableModel (Karl Hobley) - Add
formset_nameoption on ClusterableModel formsets to allow the formset name to differ from the relation name (Matt Westcott) - Fix: Fix tests for Django 3.2 (Alex Tomkins, Matt Westcott, María Fernanda Magallanes)
- Fix: Ensure ptr_id fields are correctly populated when deserialising models with multi-level inheritance (Alex Tomkins)
5.1
- Allow child form class to be overridden in the
formsetsMeta property of ClusterForm (Helder Correia) - Add prefetch_related support to ParentalManyToManyField (Andy Chosak)
- Implement
copy_child_relationandcopy_all_child_relationsmethods on ClusterableModel (Karl Hobley) - Fix: Fix behavior of ParentalKeys and prefetch_related() supplied with a lookup queryset (Juha Yrjölä)