From 0eb09c31d8696d74acb1f1174ff76418e3178c3b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 30 Dec 2018 22:52:27 +0100 Subject: [PATCH] Remove custom list code --- otpauth/views.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/otpauth/views.py b/otpauth/views.py index ae3fd6e..46cd85a 100644 --- a/otpauth/views.py +++ b/otpauth/views.py @@ -33,17 +33,6 @@ class OTPVerifyViewSet(viewsets.ModelViewSet): serializer_class = OTPSerializer queryset = OTPSeed.objects.all() - def list(self, request): - print("Liiiiiiiisting") - # data = serializers.serialize('json', self.get_queryset()) - # return HttpResponse(data, content_type="application/json") - - obj = [(o.name, o.realm, o.seed) for o in OTPSeed.objects.all()] -# obj = OTPSeed.objects.all() - return Response(obj) -# return Response({'LISTstatus': 'OK'}) - - @action(detail=False, methods=['post']) def verify(self, request):