diff --git a/hc/payments/models.py b/hc/payments/models.py index 571521a4..b6f47f53 100644 --- a/hc/payments/models.py +++ b/hc/payments/models.py @@ -29,8 +29,8 @@ class Subscription(models.Model): def price(self): if self.plan_id == "P5": return 5 - elif self.plan_id == "P20": - return 20 + elif self.plan_id == "P75": + return 75 return 0 diff --git a/hc/payments/views.py b/hc/payments/views.py index 79f09038..f6fa1c1b 100644 --- a/hc/payments/views.py +++ b/hc/payments/views.py @@ -55,7 +55,7 @@ def log_and_bail(request, result): @require_POST def create_plan(request): plan_id = request.POST["plan_id"] - if plan_id not in ("P5", "P20"): + if plan_id not in ("P5", "P75"): return HttpResponseBadRequest() sub = Subscription.objects.for_user(request.user) @@ -110,8 +110,8 @@ def create_plan(request): profile.ping_log_limit = 1000 profile.team_access_allowed = True profile.save() - elif plan_id == "P20": - profile.ping_log_limit = 10000 + elif plan_id == "P75": + profile.ping_log_limit = 1000 profile.team_access_allowed = True profile.save() diff --git a/templates/payments/pricing.html b/templates/payments/pricing.html index f6bcad27..8d58349c 100644 --- a/templates/payments/pricing.html +++ b/templates/payments/pricing.html @@ -72,6 +72,7 @@