mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-10 19:26:35 +03:00
Merge branch 'master' into pr/367
This commit is contained in:
commit
658664a7d4
|
@ -2,12 +2,13 @@ language: python
|
|||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
- "3.6"
|
||||
env:
|
||||
- DJANGO=1.8.18
|
||||
- DJANGO=1.10.7
|
||||
- DJANGO=1.11.1
|
||||
- DJANGO=1.8.* DRF=3.6.*
|
||||
- DJANGO=1.10.* DRF=3.7.*
|
||||
- DJANGO=1.11.* DRF=3.7.*
|
||||
install:
|
||||
- pip install -q Django==$DJANGO
|
||||
- pip install -q Django==$DJANGO djangorestframework==$DRF
|
||||
- pip install coveralls
|
||||
- pip install -r rest_auth/tests/requirements.pip
|
||||
script:
|
||||
|
|
|
@ -113,7 +113,7 @@ class LogoutView(APIView):
|
|||
|
||||
return self.finalize_response(request, response, *args, **kwargs)
|
||||
|
||||
def post(self, request):
|
||||
def post(self, request, *args, **kwargs):
|
||||
return self.logout(request)
|
||||
|
||||
def logout(self, request):
|
||||
|
@ -193,7 +193,7 @@ class PasswordResetConfirmView(GenericAPIView):
|
|||
def dispatch(self, *args, **kwargs):
|
||||
return super(PasswordResetConfirmView, self).dispatch(*args, **kwargs)
|
||||
|
||||
def post(self, request):
|
||||
def post(self, request, *args, **kwargs):
|
||||
serializer = self.get_serializer(data=request.data)
|
||||
serializer.is_valid(raise_exception=True)
|
||||
serializer.save()
|
||||
|
@ -216,7 +216,7 @@ class PasswordChangeView(GenericAPIView):
|
|||
def dispatch(self, *args, **kwargs):
|
||||
return super(PasswordChangeView, self).dispatch(*args, **kwargs)
|
||||
|
||||
def post(self, request):
|
||||
def post(self, request, *args, **kwargs):
|
||||
serializer = self.get_serializer(data=request.data)
|
||||
serializer.is_valid(raise_exception=True)
|
||||
serializer.save()
|
||||
|
|
Loading…
Reference in New Issue
Block a user