diff options
author | Matthew Lemon <y@yulqen.org> | 2025-01-06 19:46:13 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2025-01-06 19:46:13 +0000 |
commit | ed81f85afabf7d91a9badcd38865d43af77f483a (patch) | |
tree | 4ff988022d65834ecbb0efb8ac94741a4f11916e /alphabetlearning/payments/views.py | |
parent | f1962140a4df234d1267735b939088f73084231f (diff) |
Manually reverting two commits ago - price on Resource
- the correct structure is a Price object with a relation to the
Resource
Diffstat (limited to 'alphabetlearning/payments/views.py')
-rw-r--r-- | alphabetlearning/payments/views.py | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py index 6eaae1a..cdfafe6 100644 --- a/alphabetlearning/payments/views.py +++ b/alphabetlearning/payments/views.py @@ -1,29 +1,19 @@ import stripe +from alphabetlearning.payments.models import EmailSignup, EmailVerification +from alphabetlearning.resources.models import Resource +from alphabetlearning.users.models import User from django.conf import settings from django.contrib.auth.decorators import login_required -from django.core.mail import mail_admins -from django.core.mail import send_mail -from django.http import HttpResponse -from django.http import HttpResponseBadRequest -from django.shortcuts import get_object_or_404 -from django.shortcuts import redirect -from django.shortcuts import render -from django.urls import reverse -from django.urls import reverse_lazy +from django.core.mail import mail_admins, send_mail +from django.http import HttpResponse, HttpResponseBadRequest +from django.shortcuts import get_object_or_404, redirect, render +from django.urls import reverse, reverse_lazy from django.views import View from django.views.decorators.csrf import csrf_exempt -from django.views.generic import DeleteView -from django.views.generic import TemplateView - -from alphabetlearning.payments.models import EmailSignup -from alphabetlearning.payments.models import EmailVerification -from alphabetlearning.resources.models import Resource -from alphabetlearning.users.models import User +from django.views.generic import DeleteView, TemplateView from .forms import EmailVerificationForm -from .models import CartItem -from .models import Price -from .models import ShoppingCart +from .models import CartItem, Price, ShoppingCart # TODO get the cart integrated with Stripe # Steps to convert our Cart into something that can be used with Stripe: |