Commit b1e6bcc0 authored by Michael Fladischer's avatar Michael Fladischer

New upstream version 1.3.1

parent f8b50cd4
Metadata-Version: 1.1
Name: djoser
Version: 1.3.0
Version: 1.3.1
Summary: REST version of Django authentication system.
Home-page: https://github.com/sunscrapers/djoser
Author: SUNSCRAPERS
......@@ -23,13 +23,13 @@ Description: ======
:target: https://scrutinizer-ci.com/g/sunscrapers/djoser
REST implementation of `Django <https://www.djangoproject.com/>`_ authentication
system. **djoser** library provides a set of `Django Rest Framework <http://www.django-rest-framework.org/>`_
system. **djoser** library provides a set of `Django Rest Framework <https://www.django-rest-framework.org/>`_
views to handle basic actions such as registration, login, logout, password
reset and account activation. It works with
`custom user model <https://docs.djangoproject.com/en/dev/topics/auth/customizing/>`_.
Instead of reusing Django code (e.g. ``PasswordResetForm``), we reimplemented
few things to fit better into `Single Page App <http://en.wikipedia.org/wiki/Single-page_application)>`_
few things to fit better into `Single Page App <https://en.wikipedia.org/wiki/Single-page_application>`_
architecture.
Developed by `SUNSCRAPERS <http://sunscrapers.com/>`_ with passion & patience.
......@@ -58,14 +58,14 @@ Description: ======
$ pip install djoser
And continue with the steps described at
`configuration <http://djoser.readthedocs.io/en/latest/getting_started.html#configuration>`_
`configuration <https://djoser.readthedocs.io/en/latest/getting_started.html#configuration>`_
guide.
Documentation
=============
Documentation is available to study at
`http://djoser.readthedocs.io <http://djoser.readthedocs.io>`_
`https://djoser.readthedocs.io <https://djoser.readthedocs.io>`_
and in ``docs`` directory.
Contributing and development
......
......@@ -15,13 +15,13 @@ djoser
:target: https://scrutinizer-ci.com/g/sunscrapers/djoser
REST implementation of `Django <https://www.djangoproject.com/>`_ authentication
system. **djoser** library provides a set of `Django Rest Framework <http://www.django-rest-framework.org/>`_
system. **djoser** library provides a set of `Django Rest Framework <https://www.django-rest-framework.org/>`_
views to handle basic actions such as registration, login, logout, password
reset and account activation. It works with
`custom user model <https://docs.djangoproject.com/en/dev/topics/auth/customizing/>`_.
Instead of reusing Django code (e.g. ``PasswordResetForm``), we reimplemented
few things to fit better into `Single Page App <http://en.wikipedia.org/wiki/Single-page_application)>`_
few things to fit better into `Single Page App <https://en.wikipedia.org/wiki/Single-page_application>`_
architecture.
Developed by `SUNSCRAPERS <http://sunscrapers.com/>`_ with passion & patience.
......@@ -50,14 +50,14 @@ Simply install using ``pip``:
$ pip install djoser
And continue with the steps described at
`configuration <http://djoser.readthedocs.io/en/latest/getting_started.html#configuration>`_
`configuration <https://djoser.readthedocs.io/en/latest/getting_started.html#configuration>`_
guide.
Documentation
=============
Documentation is available to study at
`http://djoser.readthedocs.io <http://djoser.readthedocs.io>`_
`https://djoser.readthedocs.io <https://djoser.readthedocs.io>`_
and in ``docs`` directory.
Contributing and development
......
Metadata-Version: 1.1
Name: djoser
Version: 1.3.0
Version: 1.3.1
Summary: REST version of Django authentication system.
Home-page: https://github.com/sunscrapers/djoser
Author: SUNSCRAPERS
......@@ -23,13 +23,13 @@ Description: ======
:target: https://scrutinizer-ci.com/g/sunscrapers/djoser
REST implementation of `Django <https://www.djangoproject.com/>`_ authentication
system. **djoser** library provides a set of `Django Rest Framework <http://www.django-rest-framework.org/>`_
system. **djoser** library provides a set of `Django Rest Framework <https://www.django-rest-framework.org/>`_
views to handle basic actions such as registration, login, logout, password
reset and account activation. It works with
`custom user model <https://docs.djangoproject.com/en/dev/topics/auth/customizing/>`_.
Instead of reusing Django code (e.g. ``PasswordResetForm``), we reimplemented
few things to fit better into `Single Page App <http://en.wikipedia.org/wiki/Single-page_application)>`_
few things to fit better into `Single Page App <https://en.wikipedia.org/wiki/Single-page_application>`_
architecture.
Developed by `SUNSCRAPERS <http://sunscrapers.com/>`_ with passion & patience.
......@@ -58,14 +58,14 @@ Description: ======
$ pip install djoser
And continue with the steps described at
`configuration <http://djoser.readthedocs.io/en/latest/getting_started.html#configuration>`_
`configuration <https://djoser.readthedocs.io/en/latest/getting_started.html#configuration>`_
guide.
Documentation
=============
Documentation is available to study at
`http://djoser.readthedocs.io <http://djoser.readthedocs.io>`_
`https://djoser.readthedocs.io <https://djoser.readthedocs.io>`_
and in ``docs`` directory.
Contributing and development
......
__version__ = "1.3.0"
__version__ = "1.3.1"
......@@ -33,7 +33,7 @@ class UserSerializer(serializers.ModelSerializer):
return super(UserSerializer, self).update(instance, validated_data)
class CurrentUserSerializer(settings.SERIALIZERS.user):
class CurrentUserSerializer(UserSerializer):
def __init__(self, *args, **kwargs):
# Warn user about serializer split
warnings.simplefilter('default')
......
......@@ -338,8 +338,10 @@ class UserViewSet(UserCreateView, viewsets.ModelViewSet):
self.get_object = self.get_instance
if request.method == 'GET':
return self.retrieve(request, *args, **kwargs)
elif request.method in ['PUT', 'PATCH']:
elif request.method == 'PUT':
return self.update(request, *args, **kwargs)
elif request.method == 'PATCH':
return self.partial_update(request, *args, **kwargs)
elif request.method == 'DELETE':
return self.destroy(request, *args, **kwargs)
......
......@@ -17,7 +17,7 @@ def get_packages(package):
setup(
name='djoser',
version='1.3.0',
version='1.3.1',
packages=get_packages('djoser'),
license='MIT',
author='SUNSCRAPERS',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment