jj0hns0n / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
http://geonode.org/
GNU General Public License v3.0
3 stars 0 forks source link

Figure out how to handle the selection of attributes when creating JoinTargets in admin #42

Closed jj0hns0n closed 9 years ago

jj0hns0n commented 9 years ago

When creating a JoinTarget in the admin, the entire list of attributes is displayed. We need some way to filter this list based on the selected layer.

jj0hns0n commented 9 years ago

Something like this should work pretty easily https://github.com/digi604/django-smart-selects

jj0hns0n commented 9 years ago

This is implemented at https://github.com/jj0hns0n/geonode/commit/380158c3d5d8840700dfbef28ead8ce9e37d0e23

You can hit the "Add Join Target" admin page with a ?layer= and it will pre-select that layer and filter the list of attributes to only those attributes for that layer. Will add a link to this from from the layer page as soon as this page is fixed (something is broken in master)