updated models to add paid plan complexity
This commit is contained in:
@@ -42,11 +42,11 @@ def get_client_token(rower):
|
||||
def get_plans_costs():
|
||||
plans = gateway.plan.all()
|
||||
|
||||
localplans = PaidPlan.object.all()
|
||||
localplans = PaidPlan.object.filter(paymentprocessor='braintree')
|
||||
|
||||
for plan in localplans:
|
||||
for btplan in btplans:
|
||||
if int(btplan.id) == plan.braintree_id:
|
||||
if int(btplan.id) == plan.external_id:
|
||||
plan.price = float(x)
|
||||
plan.save()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user