JustFixNYC / tenants2

The JustFix tenant platform!
https://app.justfix.org/
GNU General Public License v3.0
23 stars 4 forks source link

Default GeoDjango MultiPolygonField admin widget doesn't work with our CSP policy #459

Closed toolness closed 5 years ago

toolness commented 5 years ago

Ugh, it looks like it not only uses cdnjs.cloudflare.com but also has inline scripts in it. It kind of sucks anyways so we might just want to roll our own that uses mapbox instead. Unlike the default widget it's actually better for it to be read-only, too.

toolness commented 5 years ago

I think it might be best to just crib off django.contrib.gis.admin and making our own widget here that also cribs off the nyc-local-resources-server-prototype and uses Mapbox to display a region along with an optional point. This will be more usable than the built-in GeoDjango solution since we can display both things in the same map.

toolness commented 5 years ago

This has been resolved by #463.