This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 647
unexpected keyword argument 'write_only' #19
Comments
I have got this even it worked the first time. So I decided to reinstall the framework and it worked again. |
I'm using djangorestframework 2.3.13. |
I'm using djangorestframework 2.3.10. |
@julj any way you could include a failing test for this? It will help greatly to debug and fix this issue. |
It's the code you gave on the documentation. I have everything as it the documentation and I have got the error. |
django-rest-framework 2.3.11 added the write_only field (encode/django-rest-framework#1306). I think we need to bump requirements.txt to mandate 2.3.11. |
stanhu
pushed a commit
to stanhu/django-rest-framework-jwt
that referenced
this issue
May 27, 2014
… 2.3.11 for write_only field support
@stanhu thank you so much for this |
Released 0.1.5 which contains PR #20 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When adding
url(r'^api-token-auth/', 'rest_framework_jwt.views.obtain_jwt_token'),
to my urls, as specified in the doc, I get
File "/xxx/local/lib/python2.7/site-packages/rest_framework_jwt/views.py" in
File "/xxx/local/lib/python2.7/site-packages/rest_framework_jwt/serializers.py" in
File "/xxx/local/lib/python2.7/site-packages/rest_framework_jwt/serializers.py" in JSONWebTokenSerializer
Exception Value: init() got an unexpected keyword argument 'write_only'
The text was updated successfully, but these errors were encountered: