Skip to content

Commit

Permalink
fix error when call to field as method
Browse files Browse the repository at this point in the history
  • Loading branch information
ma1onso committed Jan 26, 2020
1 parent b7e7ee2 commit bbb4a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depayco/addons/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def return_function(request, *args, **kwargs):
else:
return function(request, *args, **kwargs)

elif request.user.is_authenticated():
elif request.user.is_authenticated:
return redirect(reverse('depayco:epayco_form'))
else:
return redirect('sign_up')
Expand All @@ -36,7 +36,7 @@ def return_function(request, *args, **kwargs):
else:
return function(request, *args, **kwargs)

elif request.user.is_authenticated():
elif request.user.is_authenticated:
return function(request, *args, **kwargs)
else:
return redirect('sign_up')
Expand Down

0 comments on commit bbb4a7f

Please sign in to comment.