Skip to content

Commit ffa7f07

Browse files
committed
all changes for upcoming version 2.2
1 parent 40b9a6a commit ffa7f07

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
python-version: ["3.10", "3.11", "3.12"]
25-
django-version: ["5.0.*", "5.1.*", "5.2.*", "6.0.*"]
24+
python-version: ["3.10", "3.11", "3.12", "3.13"]
25+
django-version: ["5.1.*", "5.2.*", "6.0.*"]
2626
node-version: ["22.x"]
2727
include:
2828
- use-monolithic: "1"
2929
python-version: "3.12"
3030
django-version: "5.2.*"
3131
exclude:
32-
- python-version: "3.10"
33-
django-version: "5.0.*"
3432
- python-version: "3.10"
3533
django-version: "5.1.*"
3634
- python-version: "3.10"
3735
django-version: "5.2.*"
3836
- python-version: "3.10"
3937
django-version: "6.0.*"
38+
- python-version: "3.11"
39+
django-version: "6.0.*"
40+
- python-version: "3.13"
41+
django-version: "5.1.*"
4042

4143
steps:
4244
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
11
## Changes
22

33
- 2.2
4-
* Improve: Handle detached buttons separately when rendering form collections. This allows to use
5-
detached buttons inside collections with siblings.
4+
* Improve: Handle detached buttons separately when rendering form collections. This allows the use
5+
of detached buttons inside collections with siblings.
6+
* **Pending breaking change**: In classes inheriting from a `FormCollection` with siblings, the
7+
attribute `add_label` is deprecated in favor of `induce_add_sibling` and its corresponding
8+
activator field. This gives developers the freedom where to place and how to style the buttons
9+
used to add siblings.
10+
* **Pending breaking change**: In classes inheriting from a `FormCollection` with siblings, method
11+
`retrieve_instance` is replaced against `get_or_create_instance`. The latter now also returns a
12+
Boolean value when an instance was created which is stored as `created` inside the valid holders
13+
of a collection. This allows developers to distinguish between existing instances and newly
14+
created ones, when preparing the response.
615
* Each time a formset is submitted, an `extra_data` object is added to the request payload. This
716
can be used to pass arbitrary data to the submission. If partial submissions are used, the new
8-
button action `addExtraData` can be used to add response data to this object.
9-
* Feat: Add attribute `reverse_accessor` on FormCollection. This allows to specify the reverse
10-
accessor name of a `ForeignKey` relation used in collections.
11-
* Fix: Detached buttons use prefixed path for name attributes.
17+
button action `setExtraData` can be used to add response data to this object.
18+
* Feat: Add attribute `reverse_accessor` on FormCollection. This allows developers to specify the
19+
reverse accessor name of a `ForeignKey` relation used in collections.
20+
* Fix: Detached buttons use the prefixed path for name attributes.
21+
* Fix: The backend implementation of the `RichtextArea` widget now validates the length of
22+
submitted text ignoring all HTML tags. This emulates the behaviour of its frontend counterpart.
1223
* If any of the forms to be submitted partially does not validate, then report that form and do
1324
not send any data to the server. This action can be bypassed by setting `force-submission`.
14-
* Add a hook, so that dialogs and stepper-steps are forced to become visible when reporting
15-
the validity and their forms contain invalid fields.
25+
* Add hook, so that dialogs and stepper-steps are forced to become visible when reporting the
26+
validity and their forms contain invalid fields.
27+
* Fix: Widgets observing an `UploadedFileInput` now handle attributes `df-require`, `df-disable`,
28+
`df-show` and `df-hide` as expected.
29+
* Feat: Button action `setFieldValue()` now can update a complete datastructure of field values
30+
inside `formset_data`. Until version 2.1 it only was possible to update scalar values.
31+
* Fix: The `Selectize` widget now correctly pilfers the height of its original widget, even if
32+
style attribute is set `height: auto;`.
33+
* The initial values specified in an `Activator` field now is rendered as `value="…"` inside its
34+
associated `Button` widget.
35+
* Fix #244: Multiple widgets of type `RichtextArea` can use the same dialog form inheriting from
36+
`RichtextDialogForm`.
37+
* Add support for Django-6.0 and drop support for Django-5.0.
1638

1739
- 2.1.4
1840
* Fix: In `StepperCollection` only immediate children are considered as `StepperSteps`. This

0 commit comments

Comments
 (0)