Show user his/her requests in list form.

def list_my_requests_view(request):
    '''
    Show user his/her requests in list form.
    '''
    userProfile = UserProfile.objects.get(user=request.user)
    requests = Request.objects.filter(owner=userProfile)
    return render_to_response('list_requests.html', {
        'page_name': "Your Requests",
        'requests': requests,
        }, context_instance=RequestContext(request))