Skip to content
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

Upgrade DRF to 3.9 #111

Open
pvandriessche opened this issue Oct 24, 2018 · 4 comments
Open

Upgrade DRF to 3.9 #111

pvandriessche opened this issue Oct 24, 2018 · 4 comments

Comments

@pvandriessche
Copy link

I tried to upgrade DRF to version 3.9 to make use of the @action attribute of the routers.
However when doing so I get the following error when browsing to the API's.

rest_framework.request.WrappedAttributeError: 'CSRFCheck' object has no attribute 'process_request'

This only happens when I'm logged in. When no user is logged in it works as it should!
I think this is linked with the authentication but I can not found what is causing the problem.

Would you be able to help me?

@opticaliqlusion
Copy link

I'm having a similar problem in my own application -- would be interested in the answer.

@devenh
Copy link

devenh commented Nov 13, 2018

i'm having the same issue. i'm using django v 1.11.4. do you think the issue will go away if i upgrade to later version of django 1.11 or if i upgrade all the way to django v 2.x?

@devenh
Copy link

devenh commented Nov 15, 2018

Downgrading the version of my Django Rest Framework from 3.9 to 3.8 solved this issue for me. version 3.8 still has the @action attribute.

@rpkilby
Copy link

rpkilby commented Nov 17, 2018

process_request was introduced in Django 1.11.6, but ideally you should upgrade to the latest patch release in the 1.11.x series.

version 3.8 still has the @action attribute.

This is true, but there were several enhancements and fixes added in 3.9 for the @action decorator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants