def Playground_List(request): playgrounds = Playground.objects.all() f = playgroundFilter(request.GET, queryset=Playground.objects.all()) context = { 'filter': f, 'playgrounds': playgrounds, } return render (request, "playgroundApp/home.html", context)
def testFilter(request): f = playgroundFilter(request.GET, queryset=Playground.objects.all()) return render_to_response('playgroundApp/filterTest.html',{'filter': f})