pass filters a string not an undefined variable
authorDiane Trout <diane@caltech.edu>
Wed, 22 Jan 2014 22:10:49 +0000 (14:10 -0800)
committerDiane Trout <diane@caltech.edu>
Wed, 22 Jan 2014 22:10:49 +0000 (14:10 -0800)
htsworkflow/frontend/samples/views.py

index df7b7ba8e3ff349629db9ea0383492f12983607a..2e0b07d41db09053043ceaebde06c8ce35830ebd 100644 (file)
@@ -99,7 +99,7 @@ def library(request, todo_only=False):
     queryset = Library.objects.filter(hidden__exact=0)
     filters = {'hidden__exact': 0}
     if todo_only:
-        filters[lane] = None
+        filters['lane'] = None
     # build changelist
     fcl = HTSChangeList(request, Library,
         list_filter=['affiliations', 'library_species'],