Merge pull request #28356 from edx/jawayria/openedx-codemod
chore: Executed codemods on openedx module
This commit is contained in:
@@ -27,7 +27,7 @@ class TeamsConfig: # pylint: disable=eq-without-hash
|
||||
"""
|
||||
self._data = data if isinstance(data, dict) else {}
|
||||
|
||||
def __unicode__(self):
|
||||
def __str__(self):
|
||||
"""
|
||||
Return user-friendly string.
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Views to show a course's bookmarks.
|
||||
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
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
|
||||
@@ -57,7 +57,7 @@ class CourseBookmarksView(View):
|
||||
'disable_courseware_js': True,
|
||||
'uses_bootstrap': True,
|
||||
}
|
||||
return render_to_response('course_bookmarks/course-bookmarks.html', context)
|
||||
return render(request, 'course_bookmarks/course-bookmarks.html', context)
|
||||
|
||||
|
||||
class CourseBookmarksFragmentView(EdxFragmentView):
|
||||
|
||||
Reference in New Issue
Block a user