custom test views repair
This commit is contained in:
@@ -1047,7 +1047,7 @@ from rowers.utils import isprorower,ProcessorCustomerError
|
||||
|
||||
# Check if a user is a Pro member
|
||||
def ispromember(user):
|
||||
if not user.is_anonymous:
|
||||
if user and not user.is_anonymous:
|
||||
try:
|
||||
r = Rower.objects.get(user=user)
|
||||
except Rower.DoesNotExist:
|
||||
|
||||
Reference in New Issue
Block a user