Remove custom list code
This commit is contained in:
parent
1e2d834c59
commit
0eb09c31d8
1 changed files with 0 additions and 11 deletions
|
@ -33,17 +33,6 @@ class OTPVerifyViewSet(viewsets.ModelViewSet):
|
||||||
serializer_class = OTPSerializer
|
serializer_class = OTPSerializer
|
||||||
queryset = OTPSeed.objects.all()
|
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'])
|
@action(detail=False, methods=['post'])
|
||||||
def verify(self, request):
|
def verify(self, request):
|
||||||
|
|
Loading…
Reference in a new issue