Skip to content

Commit

Permalink
Merge branch 'master' into pr/367
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodev committed Nov 12, 2017
2 parents f89471f + ee791a4 commit 658664a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions rest_auth/views.py
Expand Up @@ -113,7 +113,7 @@ def get(self, request, *args, **kwargs):

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):
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -29,7 +29,7 @@
zip_safe=False,
install_requires=[
'Django>=1.8.0',
'djangorestframework>=3.1.0',
'djangorestframework>=3.1.3',
'six>=1.9.0',
],
extras_require={
Expand Down

0 comments on commit 658664a

Please sign in to comment.