diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 20:13:10 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 20:13:10 +0100 |
commit | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (patch) | |
tree | c5de47b92ed21e227cf0582c8f1f9171170b1a74 /pyblackbird_cc/payments/views.py | |
parent | 52240b9a0c9efaf0d092bfb029b6ca7e74442217 (diff) |
wip: import tidying and renaming path in sassit alias
Diffstat (limited to 'pyblackbird_cc/payments/views.py')
-rw-r--r-- | pyblackbird_cc/payments/views.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pyblackbird_cc/payments/views.py b/pyblackbird_cc/payments/views.py index 6ca31d8..8c32caa 100644 --- a/pyblackbird_cc/payments/views.py +++ b/pyblackbird_cc/payments/views.py @@ -1,13 +1,19 @@ import stripe from django.conf import settings from django.contrib.auth.decorators import login_required -from django.shortcuts import get_object_or_404, redirect, render +from django.shortcuts import get_object_or_404 +from django.shortcuts import redirect +from django.shortcuts import render from django.views import View from django.views.generic import TemplateView + from pyblackbird_cc.resources.models import Resource from pyblackbird_cc.users.models import User -from .models import CartItem, Price, Product, ShoppingCart +from .models import CartItem +from .models import Price +from .models import Product +from .models import ShoppingCart stripe.api_key = settings.STRIPE_SECRET_KEY @@ -88,4 +94,3 @@ def checkout(request): return render(request, "cart/checkout_success.html") return render(request, "cart/checkout.html", {"cart": cart, "total": total}) - pass |