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

Commit

Permalink
Merge pull request #147 from jsenecal/patch-1
Browse files Browse the repository at this point in the history
Another fix for compatibility issues with DRF 3.2
  • Loading branch information
jpadilla committed Aug 17, 2015
2 parents 7dc2ce7 + 1a7a8cf commit 84082d7
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 84082d7

Please sign in to comment.