New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work with DRF 3.5 #275
Comments
@oboingo I just tested /rest-auth/user with djangorestframework==3.5.1 and it worked. Please let us know what exact error you are getting. |
The error I am getting is: |
UserDetailView only operates on one object, that's why we only override What exactly is calling |
This is while using django-rest-swagger. When I go to the docs page for swagger, it displays the error. |
I was able to access it with swagger and also view and update this particular view with the following installed: djangorestframework==3.5.1 Could you please provide more details? |
I have the same problem with GET /rest-auth/user that a queryset is missing in the UserDetailsView. djangorestframework==3.5.1
The code in questions is:
IMHO you need to add a
After this fix, all is well in the reponse and no 500 is returned. |
Frankly, i have this problem exclusively in firefox (or slimerjs) headers in FF:
In Chrome (chromium, phantomjs)
Will investigate furhter and check it out better. |
Due to the differences in the behaviour of XMLHttpRequest generated requests from either Chrome/FF and the fact that the session is already authenticated in FF the problem arose. Forcing the request to accept json as response ensures a correct response in FF based requests. So use: For me this issue is resolved and more a DRF problem than a rest-auth problem. Although my suggested fix works. |
@jberends I'm get that trouble when try to use:
but with decorators all works well `@api_view() @renderer_classes([OpenAPIRenderer, SwaggerUIRenderer]) def schema_view(request):` @maxim-kht maybe lets adding get_queryset to UserDetailsView? |
Monkey patched for now
|
I added |
As of 17/07/2017 this still requires to manually add get_queryset() to UserDetailsView. |
With the new DRF 3.5, django-rest-auth seems to break and needs something similar to:
"get_queryset()" added to UserDetailViews.
Can we please get an updated version that runs correctly on 3.5?
The text was updated successfully, but these errors were encountered: