Example #1
0
 def retrieve(self, request, comment_id=None):
     """
     Implements the GET method for comments against response ID
     """
     form = CommentGetForm(request.GET)
     if not form.is_valid():
         raise ValidationError(form.errors)
     return get_response_comments(
         request,
         comment_id,
         form.cleaned_data["page"],
         form.cleaned_data["page_size"],
         form.cleaned_data["requested_fields"],
     )
Example #2
0
 def retrieve(self, request, comment_id=None):
     """
     Implements the GET method for comments against response ID
     """
     form = CommentGetForm(request.GET)
     if not form.is_valid():
         raise ValidationError(form.errors)
     return get_response_comments(
         request,
         comment_id,
         form.cleaned_data["page"],
         form.cleaned_data["page_size"],
         form.cleaned_data["requested_fields"],
     )