Commit 016071a302a78b81283b66364f591865a5238418

Authored by Andrew Buss
1 parent 43fe5932bf
Exists in master

Removed redundant flashcard get view

Showing 1 changed file with 0 additions and 10 deletions Side-by-side Diff

flashcards/views.py View file @ 016071a
... ... @@ -248,16 +248,6 @@
248 248 serializer_class = FlashcardSerializer
249 249 permission_classes = [IsAuthenticated]
250 250  
251   - def get(self, request, pk):
252   - """
253   - Return the requested flashcard.
254   - :param request: The request object.
255   - :param pk: The primary key of the card to be retrieved
256   - :return: A 200 OK request along with the card data.
257   - """
258   - obj = self.queryset.get(pk=pk)
259   - return Response(FlashcardSerializer(obj).data)
260   -
261 251 @detail_route(methods=['post'], permission_classes=[IsAuthenticated])
262 252 def report(self, request, pk):
263 253 """