ixc / wagtail-instance-selector

A widget for Wagtail's admin that allows you to create and select related items
MIT License
54 stars 17 forks source link

Incompatible with Wagtail 2.13 #11

Closed mixxorz closed 3 years ago

mixxorz commented 3 years ago

Reporting an incompatibility with the soon-to-be-released Wagtail 2.13. I've tried upgrading the Wagtail project I'm working on right now and I'm hitting this error on startup:

telepath.UnpackableTypeError: don't know how to pack object: <function InstanceSelectorBlock.get_instance_selector_icon at 0x7f76e45b44c0

It has to do with the new way form field widgets are rendered on the front-end.

I've only just found this out and trying to see if I could come up with a solution.

markfinger commented 3 years ago

Thanks for the report.

Looks like it probably needs some python hooks added to enable js init. See: https://wagtail.github.io/telepath/api_reference/

markfinger commented 3 years ago

It's probably simplest to wait for 2.13 to release: https://docs.wagtail.io/en/stable/releases/index.html

Hopefully wagtail core will either slip in some backwards compatibility or they'll document a migration path.

markfinger commented 3 years ago

Fixed in wagtail-instance-selector==2.1.0.