Skip to content

Commit

Permalink
Change request.DATA to request.data for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
James Ritchie committed Sep 8, 2015
1 parent 9038b75 commit d2debd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_expiring_authtoken/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ObtainExpiringAuthToken(ObtainAuthToken):

def post(self, request):
"""Respond to POSTed username/password with token."""
serializer = AuthTokenSerializer(data=request.DATA)
serializer = AuthTokenSerializer(data=request.data)

if serializer.is_valid():
token, _ = ExpiringToken.objects.get_or_create(
Expand Down

0 comments on commit d2debd8

Please sign in to comment.