Change HttpResponseRedirect to redirect