From edf774b171444e2a671a838bf030931a1800ae12 Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Wed, 1 Apr 2020 15:59:17 +0530 Subject: Update ruamel version, change view name - Update ruamel version to 0.16.10. - Change view name from ICourse to GetCourse. --- api/urls.py | 2 +- api/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/urls.py b/api/urls.py index 3edf945..f519aea 100644 --- a/api/urls.py +++ b/api/urls.py @@ -24,7 +24,7 @@ urlpatterns = [ url(r'validate/(?P[0-9]+)/$', views.AnswerValidator.as_view(), name='validator'), url(r'course/(?P[0-9]+)/$', - views.ICourse.as_view(), name='get_course'), + views.GetCourse.as_view(), name='get_course'), url(r'quit/(?P\d+)/$', views.QuitQuiz.as_view(), name="quit_quiz"), url(r'login/$', views.login, name='login') diff --git a/api/views.py b/api/views.py index 5bbc077..550ee6d 100644 --- a/api/views.py +++ b/api/views.py @@ -384,7 +384,7 @@ class QuestionPaperDetail(APIView): return Response(status=status.HTTP_204_NO_CONTENT) -class ICourse(APIView): +class GetCourse(APIView): def get(self, request, pk, format=None): course = Course.objects.get(id=pk) serializer = CourseSerializer(course) -- cgit