Added a dropdown status field to flowcell table
[htsworkflow.git] / gaworkflow / frontend / fctracker / views.py
1 # Create your views here.
2 from django.http import HttpResponse
3 from django.shortcuts import get_list_or_404
4 from gaworkflow.frontend.fctracker.models import Library, Person
5
6 def labindex(request):
7         return HttpResponse("Testing this page")
8
9 def labdetail(request, lab_name):
10         members = get_list_or_404(Person, lab=lab_name)
11         lab_libraries = Library.objects.filter(made_for__in=members)
12         output = ', '.join([q.library_name for q in lab_libraries])
13         return HttpResponse(output)