Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add engagement_level query

  • Loading branch information...
commit dc63349c2e1da98d5493526b349f7a13db9dffcf 1 parent bd4b4ec
@rmarianski rmarianski authored
Showing with 12 additions and 0 deletions.
  1. +10 −0 search/templates/home.html
  2. +2 −0  search/views.py
View
10 search/templates/home.html
@@ -273,6 +273,16 @@
{% endfor %}
</select>
+ <select id="template_engagement_level"
+ name="engagement_level"
+ multiple="multiple">
+ {% for item in engagement_levels %}
+ <option value="{{item}}">
+ {{item}}
+ </option>
+ {% endfor %}
+ </select>
+
<select id="template_language"
name="language"
multiple="multiple">
View
2  search/views.py
@@ -401,6 +401,7 @@ def home(request):
campuses = CoreUserField.objects.using("ak").filter(name="campus").values_list("value", flat=True).distinct().order_by("value")
skills = CoreUserField.objects.using("ak").filter(name="skills").values_list("value", flat=True).distinct().order_by("value")
+ engagement_levels = CoreUserField.objects.using("ak").filter(name="engagement_level").values_list("value", flat=True).distinct().order_by("value")
languages = CoreLanguage.objects.using("ak").all().distinct().order_by("name")
@@ -432,6 +433,7 @@ def home(request):
'About':
(('campus', "Campus"),
('skills', "Skills"),
+ ('engagement_level', "Engagement Level"),
('language', "Preferred Language"),
('created_before', "Created Before"),
('created_after', "Created After"),
Please sign in to comment.
Something went wrong with that request. Please try again.