Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yogsagot opened this issue Apr 2, 2024 · 4 comments

Comments

@yogsagot
Copy link

yogsagot commented Apr 2, 2024

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.

@laymonage
Copy link
Member

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
Copy link
Author

yogsagot commented Apr 2, 2024

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
Copy link
Collaborator

gasman commented Apr 29, 2024

@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
Copy link

Makhnov commented Jul 21, 2024

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

Cf. labd/wagtailstreamforms#200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants