Skip to content

Commit

Permalink
ADDED: UserSerializer to auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Bredehöft committed Jul 1, 2015
1 parent bb9052f commit 7f668af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drf_tools/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
from drf_tools.auth.authentications import QuietBasicAuthentication
from drf_tools.auth.filters import PermissionAwareFilterBackend
from drf_tools.auth.permissions import BusinessPermission
from drf_tools.auth.serializers import UserSerializer


class AuthView(GenericViewSet):
authentication_classes = (QuietBasicAuthentication, SessionAuthentication)
permission_classes = (AllowAny,)
serializer_class = UserSerializer

def create(self, request, *args, **kwargs):
login(request, request.user)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='drf-tools',
version="0.9.4",
version="0.9.5",
url='https://github.com/seebass/drf-tools',
license='MIT',
description='Multiple extensions and test utilities for Django REST Framework 3',
Expand Down

0 comments on commit 7f668af

Please sign in to comment.