These changes allow us to toggle between releases in the head2head view. We set the appropriate release for each of the iframes, using settings.WAZIMAP['primary_release_year'] to get the correct releases for the geo_levels specified there when we're requesting the latest release.
e.g. wards only have 2011 data, when requesting the 2016 release.
Set add a h2h query string parameter know it's a head2head page within the iframe.
@longhotsummer
These changes allow us to toggle between releases in the head2head view. We set the appropriate release for each of the iframes, using
settings.WAZIMAP['primary_release_year']
to get the correct releases for the geo_levels specified there when we're requesting the latest release.e.g. wards only have 2011 data, when requesting the 2016 release.
Set add a
h2h
query string parameter know it's a head2head page within the iframe.