Skip to content

Releases: wagtail/django-modelcluster

6.3

26 Feb 19:27
Compare
Choose a tag to compare
  • 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 and iso_year field lookups (Andy Babic)
  • Support datetime transform expressions on values and values_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

04 Jan 15:10
Compare
Choose a tag to compare
  • Fix: Prevent failure on pre-3.1.0 versions of django-taggit without _remove_prefetched_objects

6.2

03 Jan 15:11
Compare
Choose a tag to compare
6.2
  • Added Django 5.0 support
  • Removed Django 4.1 support
  • Implement prefetching for ClusterTaggableManager (Andy Chosak)

6.1

04 Oct 19:27
Compare
Choose a tag to compare
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

14 Mar 21:15
Compare
Choose a tag to compare
6.0
  • BREAKING: ClusterForm now builds no child formsets when neither formsets nor exclude_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

10 Mar 13:49
Compare
Choose a tag to compare
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() and values_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

13 Oct 13:08
Compare
Choose a tag to compare
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

10 Sep 16:25
Compare
Choose a tag to compare
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 and copy_all_child_relations methods on ClusterableModel (Karl Hobley)
  • Fix: Fix behavior of ParentalKeys and prefetch_related() supplied with a lookup queryset (Juha Yrjölä)

5.0.2

26 May 09:13
Compare
Choose a tag to compare
  • Fix: Fix compatibility with django-taggit 1.3.0 (Martin Sandström)

5.0.1

06 Jan 18:47
Compare
Choose a tag to compare
  • Fix: ClusterForm without an explicit formsets kwarg now allows formsets to be omitted from form submissions, to fix regression with nested relations
  • Fix: ParentalManyToManyField data is now loaded correctly by manage.py loaddata (Andy Babic)