diff --git a/ippisite/ippidb/views.py b/ippisite/ippidb/views.py index 01dca365113f42380d5172c8186f7a0f7248b29f..50e9e9c90bdaebb96543b844a3f171f989c39f11 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,