From bc8922c4eaf10f8ee3f55a21fdeeee06a0b54646 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Wed, 16 May 2018 16:11:10 +0200
Subject: [PATCH] fix broken display modes in compounds list

close #62


Former-commit-id: 92bc4260853d100e5a578cbc5b36001e253870d9
---
 ippisite/ippidb/views.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ippisite/ippidb/views.py b/ippisite/ippidb/views.py
index 328e30a4..703c850b 100644
--- a/ippisite/ippidb/views.py
+++ b/ippisite/ippidb/views.py
@@ -234,6 +234,7 @@ def compound_list(request):
     display = request.GET.get('display')
     if display not in ['l', 't']:
         display = 'v'
+    context['display']=display
     compound_fields = {f.name: f.verbose_name for f in Compound._meta.get_fields() if not(f.is_relation)}
     sort_by_options = {}
     for sort_by_option_id in sort_by_option_ids:
-- 
GitLab