passing checks with django 2.1.7
This commit is contained in:
@@ -6,7 +6,7 @@ from __future__ import unicode_literals
|
||||
from rowers.views.statements import *
|
||||
|
||||
def paidplans_view(request):
|
||||
if not request.user.is_anonymous():
|
||||
if not request.user.is_anonymous:
|
||||
r = request.user.rower
|
||||
if r.paymentprocessor != 'braintree' and r.paymenttype == 'recurring':
|
||||
messages.error(request,'Automated payment processing is currently only available through BrainTree (by PayPal). You are currently on a recurring payment plan with PayPal. Contact the site administrator at support@rowsandall.com before you proceed')
|
||||
|
||||
Reference in New Issue
Block a user