wagtail-geo-widget icon indicating copy to clipboard operation
wagtail-geo-widget copied to clipboard

GoogleMapsPanel doesn't correctly parse the passed in address_field

Open nickmoreton opened this issue 2 years ago • 0 comments

https://github.com/Frojd/wagtail-geo-widget/blob/d5fa15e3c44be2c047e6721904d0d82e4ffb4251/wagtailgeowidget/edit_handlers.py#L14

I've not had time to dig very deeply into the issue but I think it's because the recent work to add Wagtail compatibility has broken it.

If get time I will take a look. This part of the upgrade docs is the relevant info: https://docs.wagtail.org/en/stable/releases/3.0.html#api-changes-to-panels-edithandlers

It may be as simple as renaming this function: https://github.com/Frojd/wagtail-geo-widget/blob/d5fa15e3c44be2c047e6721904d0d82e4ffb4251/wagtailgeowidget/edit_handlers.py#L29 as I think above where https://github.com/Frojd/wagtail-geo-widget/blob/d5fa15e3c44be2c047e6721904d0d82e4ffb4251/wagtailgeowidget/edit_handlers.py#L26 Is not using the function below but the function on the parent Panel class which returns and empty dict. I am guessing though.

nickmoreton avatar Aug 08 '22 13:08 nickmoreton