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

fix broken display modes in compounds list

close #62


Former-commit-id: 92bc4260853d100e5a578cbc5b36001e253870d9
parent 8ed90bd7
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,7 @@ def compound_list(request): ...@@ -234,6 +234,7 @@ def compound_list(request):
display = request.GET.get('display') display = request.GET.get('display')
if display not in ['l', 't']: if display not in ['l', 't']:
display = 'v' display = 'v'
context['display']=display
compound_fields = {f.name: f.verbose_name for f in Compound._meta.get_fields() if not(f.is_relation)} compound_fields = {f.name: f.verbose_name for f in Compound._meta.get_fields() if not(f.is_relation)}
sort_by_options = {} sort_by_options = {}
for sort_by_option_id in sort_by_option_ids: for sort_by_option_id in sort_by_option_ids:
......
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