From 07e875ec667583ae7878d0393ea13b50db1b3018 Mon Sep 17 00:00:00 2001 From: EvilPug <3608690@gmail.com> Date: Thu, 25 Apr 2024 21:42:00 +0300 Subject: [PATCH] chore(webauthn): replaced Serializer with Webauthn Serializers --- djoser/webauthn/views.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/djoser/webauthn/views.py b/djoser/webauthn/views.py index ae475d38..ab7b725d 100644 --- a/djoser/webauthn/views.py +++ b/djoser/webauthn/views.py @@ -3,7 +3,6 @@ from rest_framework import status from rest_framework.permissions import AllowAny from rest_framework.response import Response -from rest_framework.serializers import Serializer from rest_framework.settings import api_settings from rest_framework.views import APIView from webauthn import ( @@ -32,7 +31,7 @@ class SignupRequestView(APIView): permission_classes = (AllowAny,) - serializer_class = Serializer + serializer_class = WebauthnSignupSerializer def post(self, request): serializer = WebauthnSignupSerializer(data=request.data) @@ -97,7 +96,7 @@ def post(self, request, ukey): class LoginRequestView(APIView): permission_classes = (AllowAny,) - serializer_class = Serializer + serializer_class = WebauthnLoginSerializer def post(self, request): serializer = WebauthnLoginSerializer(data=request.data)