From 188b35ab83d9d09cf84520af345464638f97fa20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr> Date: Tue, 6 Mar 2018 16:02:25 +0100 Subject: [PATCH] correct compound table custom columns parameters parsing Former-commit-id: 7b9f4b81ac29826e63a67db04192e2d7e01eacaa --- ippisite/ippidb/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ippisite/ippidb/views.py b/ippisite/ippidb/views.py index 01dca365..50e9e9c9 100644 --- a/ippisite/ippidb/views.py +++ b/ippisite/ippidb/views.py @@ -219,7 +219,7 @@ def compound_list(request): display = 'v' compound_fields = {f.name: f.verbose_name for f in Compound._meta.get_fields() if not(f.is_relation)} sort_by_options = {sort_by_option: compound_fields[sort_by_option] for sort_by_option in sort_by_options} - fields = request.GET.get('fields',['id', 'common_name', 'molecular_weight', 'a_log_p', 'compound_action_pdb_ids', 'biblio_refs']) + fields = request.GET.getlist('fields',['id', 'common_name', 'molecular_weight', 'a_log_p', 'compound_action_pdb_ids', 'biblio_refs']) return render(request, 'compound_list.html', {'compounds': compounds, 'count': count, 'selected_ppis': selected_ppis, -- GitLab