From 062cac24e2abb223ac3bf3f74f37739fb7eefa5d Mon Sep 17 00:00:00 2001
From: Martin Burchell <martinb@aptivate.org>
Date: Tue, 11 Dec 2018 16:17:58 +0000
Subject: [PATCH] Remember location selection

---
 internewshid/hid/templates/hid/tabs/filters/location.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internewshid/hid/templates/hid/tabs/filters/location.html b/internewshid/hid/templates/hid/tabs/filters/location.html
index d55f3fec..c72acbc6 100644
--- a/internewshid/hid/templates/hid/tabs/filters/location.html
+++ b/internewshid/hid/templates/hid/tabs/filters/location.html
@@ -5,7 +5,7 @@
       <select id="location-selector" name="location" class="form-control">
         <option value="All Locations" selected="selected">All Locations</option>
         {% for location in locations.items %}
-          <option value="{{ location }}">{{ location | title }}</option>
+          <option value="{{ location }}"{% if location == request.GET.location %} selected="selected"{% endif %}>{{ location | title }}</option>
         {% endfor %}
       </select>
   </div>
-- 
GitLab