@login_required
def view_survey(request, survey_name):
 redirect_url = request.GET.get('redirect_url')
 return view_student_survey(request.user, survey_name, redirect_url=redirect_url)

@ login_required def view_survey ( request , survey_name ) : redirect_url = request . GET . get ( 'redirect_url' ) return view_student_survey ( request . user , survey_name , redirect_url = redirect_url )
view to render the survey to the end user .