Created
May 7, 2019 11:10
-
-
Save akshar-raaj/03072f66bd436e793173381c23745fa1 to your computer and use it in GitHub Desktop.
Result view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @api_view(['GET']) | |
| def question_result_view(request, question_id): | |
| question = get_object_or_404(Question, pk=question_id) | |
| serializer = QuestionResultPageSerializer(question) | |
| return Response(serializer.data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment