убраль вью старой регистрации
This commit is contained in:
parent
d53a9e6f49
commit
e28e26964b
|
|
@ -1,4 +1,4 @@
|
|||
from rest_framework import status
|
||||
""" from rest_framework import status
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.views import APIView
|
||||
from django.contrib.auth import authenticate
|
||||
|
|
@ -8,7 +8,7 @@ from django.contrib.auth.models import User
|
|||
|
||||
from rest_framework.decorators import api_view, permission_classes
|
||||
from rest_framework.permissions import AllowAny
|
||||
#from userProfile.serializers import ProfileSerializer
|
||||
from userProfile.serializers import ProfileSerializer
|
||||
from loginApi.serializers import UserSerializer
|
||||
|
||||
@api_view(['POST'])
|
||||
|
|
@ -50,4 +50,4 @@ def register(request):
|
|||
}, status=status.HTTP_201_CREATED)
|
||||
else:
|
||||
return Response(profile_serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
return Response(user_serializer.errors, status=status.HTTP_400_BAD_REQUEST)
|
||||
return Response(user_serializer.errors, status=status.HTTP_400_BAD_REQUEST) """
|
||||
Loading…
Reference in New Issue