Skip to content

Commit

Permalink
JSON load utf-8 error...
Browse files Browse the repository at this point in the history
  • Loading branch information
cgaspoz committed Feb 7, 2015
1 parent 32aa96f commit 3794df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marmix/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class UserViewSet(viewsets.ReadOnlyModelViewSet):
class LoginView(views.APIView):

def post(self, request, format=None):
data = json.loads(request.body)
data = json.loads(request.body.decode('utf-8'))

username = data.get('username', None)
password = data.get('password', None)
Expand Down

0 comments on commit 3794df7

Please sign in to comment.