got a little further - still failing
This commit is contained in:
@@ -1040,7 +1040,7 @@ def ispromember(user):
|
||||
if not user.is_anonymous():
|
||||
try:
|
||||
r = Rower.objects.get(user=user)
|
||||
except Rower.DoesNotExists:
|
||||
except Rower.DoesNotExist:
|
||||
r = Rower(user=user)
|
||||
r.save()
|
||||
|
||||
@@ -1381,6 +1381,7 @@ def checkouts_view(request):
|
||||
form = BillingForm(request.POST)
|
||||
if form.is_valid():
|
||||
data = form.cleaned_data
|
||||
print r
|
||||
success,amount = braintreestuff.create_subscription(r,data)
|
||||
if success:
|
||||
messages.info(request,"Your payment has succeeded and your plan has been updated")
|
||||
|
||||
Reference in New Issue
Block a user