Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ay4m authored Oct 2, 2018
1 parent 7aa7b76 commit 16186ff
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
from accounts.models import UserAccount
from accounts.serializers import AccountSerializer

class LoginView(views.APIView):
def post(self, request):
print(request.user)
data = json.loads(request.body)
print(data)
return Response({
'message': 'Account could not be created with received data.'
}, status = status.HTTP_400_BAD_REQUEST)


class RegisterView(views.APIView):
permission_classes = (permissions.AllowAny,)

Expand Down Expand Up @@ -45,4 +35,4 @@ def post(self, request):
return Response({}, status=status.HTTP_204_NO_CONTENT)




0 comments on commit 16186ff

Please sign in to comment.