Fix bug with IPR search select box

- Legacy-Id: 3826
This commit is contained in:
Ole Laursen 2012-01-19 13:20:45 +00:00
parent e20a96333a
commit 5e39ea2e63

View file

@ -221,4 +221,8 @@ def search(request, type="", q="", id=""):
else:
raise Http404("Unexpected search type in IPR query: %s" % type)
return django.http.HttpResponseRedirect(request.path)
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
for wg in wgs:
wg.group_acronym = wg # proxy group_acronym for select box
return render("ipr/search.html", {"wgs": wgs}, context_instance=RequestContext(request))