Skip to content

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 22:56
· 4 commits to main since this release
648fabb

Fixed

  • {% regroup %} over a single model refuses, as Django does (#3948). A model is not
    iterable, so {% regroup r by name as g %} over one raises TypeError; through a
    LiveView's state the tag was handed the model's serialized map and grouped its key
    names. The tag now refuses a source that is a serialized model map (a text __str__,
    a text __model__ and a pk), after any filters on the source have run. A regroup
    over a list, tuple or QuerySet of models, and over an ordinary dict, is unchanged.
    Pinned against Django on a real instance in
    python/tests/test_regroup_model_source_3948.py.

What's Changed

Full Changelog: v1.3.0...v1.3.1