Skip to content

Commit

Permalink
fix is_authenticated for Django 2.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
madisvain authored and avelis committed Apr 25, 2018
1 parent f168cfd commit b753c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_tracking/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _get_view_method(self, request):
def _get_user(self, request):
"""Get user."""
user = request.user
if user.is_anonymous():
if not user.is_authenticated:
return None
return user

Expand Down

0 comments on commit b753c5e

Please sign in to comment.