OpenUpSA / wazimap

Wazimap is a Django application for exploring census data.
http://wazimap.readthedocs.org/en/latest/
Other
30 stars 31 forks source link

Don't remove primary geo when removing geos by level #74

Closed xybrnet closed 7 years ago

xybrnet commented 7 years ago

@longhotsummer

This prevents the removal of the primary geo in the comparisons view, when choosing to add all geos in a geo_level, and then selecting to remove them.

If the primary geo is removed, other issues arise due to the incorrect state of how many geos are displaying. Like displaying no geos (the display of which looks 'broken'), and whether or not to display the remove links (no link is displayed if there is only one geo).

It works on the table, map and distribution view.

longhotsummer commented 7 years ago

Hooray! This has been bugging me for a while. I haven't actually checked the fix, but I hope it works as expected :)

xybrnet commented 7 years ago

I see now this is not working as expected : /