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

Refs #27674 -- Added tests for GISModelAdmin.gis_widget_kwargs. #15211

Closed
wants to merge 2 commits into from

Conversation

iGeophysix
Copy link
Contributor

@iGeophysix iGeophysix commented Dec 17, 2021

The problem is that the gis_widget_kwargs attribute of GeoModelAdminMixin is **-unpacked into gis_widget which is OSMWidget by default.
OSMWidget and BaseGeometryWidget have .init(self, attrs=None), not .init(self, **kwargs), so this is broken.
https://code.djangoproject.com/ticket/33372

@iGeophysix iGeophysix changed the title Ticket 33372 Fixed #33372 - GISModelAdmin.gis_widget_kwargs cannot be used due to signature mismatch Dec 17, 2021
@iGeophysix iGeophysix closed this Dec 17, 2021
@felixxm
Copy link
Member

felixxm commented Dec 17, 2021

@iGeophysix Can I reopen your PR and use it as test coverage for gis_widget_kwargs? Basically all changes except django/contrib/gis/admin/options.py modification.

@iGeophysix
Copy link
Contributor Author

@iGeophysix Can I reopen your PR and use it as test coverage for gis_widget_kwargs? Basically all changes except django/contrib/gis/admin/options.py modification.

@felixxm sure!

@felixxm felixxm changed the title Fixed #33372 - GISModelAdmin.gis_widget_kwargs cannot be used due to signature mismatch Refs #27674 -- Added tests for GISModelAdmin.gis_widget_kwargs. Dec 20, 2021
@felixxm
Copy link
Member

felixxm commented Dec 20, 2021

@iGeophysix Thanks 👍 , see #15218. Welcome aboard ⛵

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