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

Use is_authenticated attribute, drop Django < 1.11 #156

Merged
merged 1 commit into from
Dec 29, 2018

Conversation

jwhitlock
Copy link
Contributor

Django 1.11 starts the transition from the method request.user.is_authenticated() to the property
request.user.is_authenticated. Either can be used, but a RemovedInDjango20Warning is raised if the method is used.

Simplify the code to expect a boolean user.is_authenticated property, and drop support for the non-supported Django versions 1.8, 1.9, and 1.10.

Django 1.11 starts the transition from the method
request.user.is_authenticated() to the property
request.user.is_authenticated. Either can be used, but a
RemovedInDjango20Warning is raised if the method is used.

Simplify the code to expect a boolean user.is_authenticated property,
and drop support for the non-supported Django versions 1.8, 1.9, and
1.10.
@adamchainz adamchainz changed the title Use is_autheticated attribute, drop Django < 1.11 Use is_authenticated attribute, drop Django < 1.11 Nov 17, 2018
Copy link
Collaborator

@adamchainz adamchainz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jsocol jsocol merged commit 377c4e6 into jsocol:master Dec 29, 2018
@jsocol
Copy link
Owner

jsocol commented Dec 29, 2018

Ty @jwhitlock!

@jsocol jsocol mentioned this pull request Dec 29, 2018
@jwhitlock jwhitlock deleted the drop-django-1.8-1.10 branch January 17, 2019 15:36
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 this pull request may close these issues.

3 participants