Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Another fix for compatibility issues with DRF 3.2
Browse files Browse the repository at this point in the history
The reason for this fix is explained there: #146 (comment)
  • Loading branch information
jsenecal committed Aug 17, 2015
1 parent 7dc2ce7 commit 1a7a8cf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rest_framework_jwt/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ def get_username(user):


def get_request_data(request):
try:
if hasattr(request, 'data'):
data = request.data
except:
else:
# DRF < 3.2
data = request.DATA

return data

0 comments on commit 1a7a8cf

Please sign in to comment.