summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCruiseDevice2020-04-01 15:59:17 +0530
committerCruiseDevice2020-04-01 15:59:17 +0530
commitedf774b171444e2a671a838bf030931a1800ae12 (patch)
treec2180b2ea244cedf42b9afa6c915c40c7756899f
parentb42100d3a631adb79f641b70a1e2acec82e1d735 (diff)
downloadonline_test-edf774b171444e2a671a838bf030931a1800ae12.tar.gz
online_test-edf774b171444e2a671a838bf030931a1800ae12.tar.bz2
online_test-edf774b171444e2a671a838bf030931a1800ae12.zip
Update ruamel version, change view name
- Update ruamel version to 0.16.10. - Change view name from ICourse to GetCourse.
-rw-r--r--api/urls.py2
-rw-r--r--api/views.py2
-rw-r--r--requirements/requirements-common.txt2
3 files changed, 3 insertions, 3 deletions
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<uid>[0-9]+)/$',
views.AnswerValidator.as_view(), name='validator'),
url(r'course/(?P<pk>[0-9]+)/$',
- views.ICourse.as_view(), name='get_course'),
+ views.GetCourse.as_view(), name='get_course'),
url(r'quit/(?P<answerpaper_id>\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)
diff --git a/requirements/requirements-common.txt b/requirements/requirements-common.txt
index bab7fe7..adb9fb1 100644
--- a/requirements/requirements-common.txt
+++ b/requirements/requirements-common.txt
@@ -7,7 +7,7 @@ requests-oauthlib>=0.6.1
social-auth-app-django==3.1.0
selenium==2.53.6
coverage
-ruamel.yaml==0.15.23
+ruamel.yaml==0.16.10
markdown==2.6.9
pygments==2.2.0
djangorestframework==3.11.0