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

is_authenticated() in views.py #28

Closed
JHei opened this issue Dec 23, 2021 · 3 comments · Fixed by #29
Closed

is_authenticated() in views.py #28

JHei opened this issue Dec 23, 2021 · 3 comments · Fixed by #29

Comments

@JHei
Copy link

JHei commented Dec 23, 2021

User.is_authenticated() method is deprecated since django 2.0 but it's still in views.py. Has this to be replaced by property?

@hramezani
Copy link
Member

It seems User.is_authenticated() is not deprecated.
I am wrong?

@JHei
Copy link
Author

JHei commented Dec 26, 2021

It seems User.is_authenticated() is not deprecated. I am wrong?

I think it is now an attribute and not a method anymore.

@hramezani
Copy link
Member

Yes, You are right. would you like to create a patch to fix it?

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

Successfully merging a pull request may close this issue.

2 participants