diff --git a/hc/payments/views.py b/hc/payments/views.py index 98466bf6..aa239ef8 100644 --- a/hc/payments/views.py +++ b/hc/payments/views.py @@ -1,5 +1,6 @@ from io import BytesIO +from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.http import ( @@ -33,7 +34,11 @@ def pricing(request): # subscription object is not created just by viewing a page. sub = Subscription.objects.filter(user_id=request.user.id).first() - ctx = {"page": "pricing", "sub": sub} + ctx = { + "page": "pricing", + "sub": sub, + "enable_whatsapp": settings.TWILIO_USE_WHATSAPP, + } return render(request, "payments/pricing.html", ctx) diff --git a/templates/payments/pricing.html b/templates/payments/pricing.html index abe85115..aba47891 100644 --- a/templates/payments/pricing.html +++ b/templates/payments/pricing.html @@ -110,7 +110,7 @@