Closed jeancochrane closed 4 years ago
@beamalsky is going to pick this up in December!
This is moving at https://github.com/datamade/django-geomultiplechoice
I think this is done! Any further steps we need to take @beamalsky? Perhaps a blog post?
I think we can consider this done!
And can be tested next time we need this functionality.
Awesome, thanks!
Background
So far in two separate client apps (https://github.com/datamade/erikson-edi and https://github.com/datamade/just-spaces/) we've had to implement something I call a "GeoMultipleChoiceField" -- a Django form field and widget that allows the user to select multiple geometries on a map and store foreign keys to those geometries the database.
In Just Spaces I tried a bit harder to modularize this functionality, as you can see in https://github.com/datamade/just-spaces/blob/master/surveys/widgets.py and https://github.com/datamade/just-spaces/blob/2c1b312e6e14692eaccadc272a278a04eb6a4b11/surveys/forms.py#L219-L234, but it's still pretty tightly coupled to the app and I don't think the API design is very good.
Since this is functionality that has come up twice, I think it's a great candidate for an open source library.
Proposal
I propose to develop an open source Django plugin providing a GeoMultipleChoiceField.
Deliverables
A repo and PyPi package for
django-geomultiplechoicefield
, providing both a form field and a widget for this functionality.Timeline
Much of the logic here is already done, but it needs to be modularized and the API needs improvement. I think this would take somewhere around 20 hours to finish.