wagtail-generic-chooser icon indicating copy to clipboard operation
wagtail-generic-chooser copied to clipboard

RemovedInWagtail70Warning: The usage of `WidgetWithScript` hook is deprecated. Use external scripts instead

Open yogsagot opened this issue 10 months ago • 4 comments

Hi all!

We are using wagtail-generic-chooser in our project and recently upgraded our codebase to Wagtail 6.0 and since then we are getting warning:

RemovedInWagtail70Warning: The usage of WidgetWithScript hook is deprecated. Use external scripts instead..

It appears that we get this warning from wagtail-generic-chooser widget that is derived from WidgetWithScript

class AdminChooser(WidgetWithScript, widgets.Input):

It also appears that WidgetWithScript will be completely removed in Wagtail 7.0 in near future so your package will stop working completely.

Regards.

yogsagot avatar Apr 02 '24 10:04 yogsagot

Hey, this package is deprecated in favour of the built-in generic choosers in Wagtail 5.2 and later. See this project’s README for more details.

laymonage avatar Apr 02 '24 10:04 laymonage

Hi! Thanks for your reply. Unfortunately built in Wagtail chooser does not cover all of our use-cases, that's why we had to rely on this package.

yogsagot avatar Apr 02 '24 11:04 yogsagot

@yogsagot What use-case do you have that isn't covered by Wagtail's generic choosers? As far as I'm aware, all the features of wagtail-generic-chooser are now covered by Wagtail (the final one being linked_fields introduced in 5.2).

gasman avatar Apr 29 '24 13:04 gasman

Any way to keep using wagtailstreamforms without generic-chooser since wagtail cover everything ?

Cf. https://github.com/labd/wagtailstreamforms/issues/200

Makhnov avatar Jul 21 '24 17:07 Makhnov