wagtail / wagtail-generic-chooser

A toolkit for custom chooser popups in Wagtail
BSD 3-Clause "New" or "Revised" License
116 stars 25 forks source link

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

Open yogsagot opened 7 months ago

yogsagot commented 7 months ago

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 ofWidgetWithScripthook 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.

laymonage commented 7 months ago

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.

yogsagot commented 7 months ago

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.

gasman commented 6 months ago

@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).

Makhnov commented 3 months ago

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

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