From 666706ef3e2b2e7a8d389a766cda9160785946a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 7 Mar 2017 16:49:39 +0200 Subject: [PATCH] Pricing updates. --- hc/payments/models.py | 4 ++-- hc/payments/views.py | 6 +++--- templates/payments/pricing.html | 15 +++++++++------ 3 files changed, 14 insertions(+), 11 deletions(-) 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 @@
  • Unlimited Alerts
  • 100 log entries per check
  • One User
  • +
  •