Skip to content
Snippets Groups Projects
Commit 188b35ab authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct compound table custom columns parameters parsing

Former-commit-id: 7b9f4b81ac29826e63a67db04192e2d7e01eacaa
parent d0bf5633
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment