Create a proper billing page
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user