Create a proper billing page

This commit is contained in:
2022-07-21 13:47:56 +01:00
parent 606e8122a6
commit caf63fd4de
4 changed files with 69 additions and 99 deletions

View File

@@ -5,8 +5,10 @@ from django.views import View
from django.views.generic.edit import CreateView
from core.forms import NewUserForm
from core.models import Plan
# Create your views here
# fmt: off
class Home(View):
@@ -20,7 +22,10 @@ class Billing(LoginRequiredMixin, View):
template_name = "billing.html"
def get(self, request):
return render(request, self.template_name)
context = {"plans": Plan.objects.all(),
"user_plans": request.user.plans.all()}
return render(request, self.template_name, context)
class Signup(CreateView):