def redirect_view(request):
if request.GET:<EOL><INDENT>query = '<STR_LIT:?>' + urlencode(request.GET, True)<EOL><DEDENT>else:<EOL><INDENT>query = '<STR_LIT>'<EOL><DEDENT>return HttpResponseRedirect('<STR_LIT>' + query)<EOL>
A view that redirects all requests to the GET view