Created
July 7, 2019 19:21
-
-
Save akshar-raaj/8ab0926c3fb7c7d2aaa75223b65cb4de to your computer and use it in GitHub Desktop.
Search 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
| from rest_framework import generics | |
| from .models import Question | |
| from .serializers import QuestionSerializer | |
| class QuestionsAPIView(generics.ListCreateAPIView): | |
| queryset = Question.objects.all() | |
| serializer_class = QuestionSerializer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment