Skip to content

Commit

Permalink
Merge pull request #40 from erikcw/master
Browse files Browse the repository at this point in the history
Change user.is_authenticated check for Django 2.0
  • Loading branch information
grahamu authored Jan 23, 2018
2 parents 974317f + 6084b4d commit 0934825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/referrals/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def record_response(cls, request, action_string, target=None):

@classmethod
def referral_for_request(cls, request):
if request.user.is_authenticated():
if request.user.is_authenticated:
qs = ReferralResponse.objects.filter(user=request.user)
else:
qs = ReferralResponse.objects.filter(session_key=request.session.session_key)
Expand Down

0 comments on commit 0934825

Please # to comment.