Releases: wagtail/django-modelcluster
Releases · wagtail/django-modelcluster
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_weekday
andiso_year
field lookups (Andy Babic) - Support datetime transform expressions on
values
andvalues_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
formsets
norexclude_formsets
is 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
formsets
option on the outer formset's definition (Matt Westcott) - Add
inherit_kwargs
attribute 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_by
lookups (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_cluster
method on ClusterableModel (Karl Hobley) - Add
formset_name
option 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
formsets
Meta property of ClusterForm (Helder Correia) - Add prefetch_related support to ParentalManyToManyField (Andy Chosak)
- Implement
copy_child_relation
andcopy_all_child_relations
methods on ClusterableModel (Karl Hobley) - Fix: Fix behavior of ParentalKeys and prefetch_related() supplied with a lookup queryset (Juha Yrjölä)