jaycrossler / geoq-django

Collect geospatial features and manage feature collection among groups of users.
Other
12 stars 0 forks source link

Fix Index error when trying to select an AOI to work. #7

Closed garnertb closed 11 years ago

garnertb commented 11 years ago

IndexError at /geoq/aois/work/1 list index out of range Request Method: GET Request URL: http://127.0.0.1:8000/geoq/aois/work/1 Django Version: 1.5.1 Exception Type: IndexError Exception Value:
list index out of range

garnertb commented 11 years ago

This occurs when there are no layers in the db (due the hard codings in the view https://github.com/jaycrossler/geoq-django/blob/master/geoq/core/views.py#L79).

garnertb commented 11 years ago

Fixed in 223df016cdfa804cb0ed1aecd0ce2445786e3581.