Commit 89164bb6 by Peter Desjardins

Moved the YAML docstring into a method docstring.

parent d65cddd1
......@@ -188,6 +188,15 @@ class CourseListView(DeveloperErrorViewMixin, ListAPIView):
}
]
"""
pagination_class = NamespacedPageNumberPagination
serializer_class = CourseSerializer
def get_queryset(self):
"""
Return a list of courses visible to the user.
---
# YAML
......@@ -218,14 +227,6 @@ class CourseListView(DeveloperErrorViewMixin, ListAPIView):
paramType: query
"""
pagination_class = NamespacedPageNumberPagination
serializer_class = CourseSerializer
def get_queryset(self):
"""
Return a list of courses visible to the user.
"""
form = CourseListGetForm(self.request.query_params, initial={'requesting_user': self.request.user})
if not form.is_valid():
raise ValidationError(form.errors)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment