Skip to content

Commit 2c52025

Browse files
committed
Replace the plone.app.z3cform relateditems widget with the contentbrowser widget.
The contentbrowser widget is a drop-in replacement for the related items widget. The related items widget will be removed in Plone 7.
1 parent 34ad11f commit 2c52025

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## 1.0.0a6 (unreleased)
44

5+
- Replace the plone.app.z3cform relateditems widget with the contentbrowser
6+
widget.
7+
The contentbrowser widget is a drop-in replacement for the related items
8+
widget. The related items widget will be removed in Plone 7.
9+
[thet]
10+
511
- Add deprecations from plone.app.z3cform.
612
[thet]
713

src/plone_codemod/migration_config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,12 @@ imports:
497497
new: plone.app.z3cform.widgets.querystring.QueryStringWidget
498498

499499
# Related items widgets moved to widgets.relateditems module
500+
# and superseded by the new contentbrowser
500501
- old: plone.app.z3cform.widget.RelatedItemsFieldWidget
501-
new: plone.app.z3cform.widgets.relateditems.RelatedItemsFieldWidget
502+
new: plone.app.z3cform.widgets.contentbrowser.ContentBrowserFieldWidget
502503

503504
- old: plone.app.z3cform.widget.RelatedItemsWidget
504-
new: plone.app.z3cform.widgets.relateditems.RelatedItemsWidget
505+
new: plone.app.z3cform.widgets.contentbrowser.ContentBrowserItemsWidget
505506

506507
# Rich text widgets moved to widgets.richtext module
507508
- old: plone.app.z3cform.widget.RichTextFieldWidget

0 commit comments

Comments
 (0)