From f7c2ff1222cad7c1d3e02b3cc88254bba66fcf8e Mon Sep 17 00:00:00 2001 From: Jawayria Date: Tue, 3 Aug 2021 14:27:03 +0500 Subject: [PATCH] chore: Executed codemods on lms/djangoapps --- lms/djangoapps/discussion/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/discussion/views.py b/lms/djangoapps/discussion/views.py index 85d357e487..c08b54e34c 100644 --- a/lms/djangoapps/discussion/views.py +++ b/lms/djangoapps/discussion/views.py @@ -11,7 +11,7 @@ from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from django.contrib.staticfiles.storage import staticfiles_storage from django.http import Http404, HttpResponseForbidden, HttpResponseServerError -from django.shortcuts import render_to_response +from django.shortcuts import render from django.template.context_processors import csrf from django.template.loader import render_to_string from django.urls import reverse @@ -683,7 +683,7 @@ def followed_threads(request, course_key, user_id): # 'content': content, } - return render_to_response('discussion/user_profile.html', context) + return render(request, 'discussion/user_profile.html', context) except User.DoesNotExist: raise Http404 # lint-amnesty, pylint: disable=raise-missing-from