diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-11 17:24:45 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-11 17:24:45 +0100 |
commit | d36b3fd70b9bd34719fc4d08594563ef73759ee7 (patch) | |
tree | 14b1eda72de461280637fbf6341d862212e1c1b0 /pyblackbird_cc/payments/views.py | |
parent | a7afbfd090c3f059eeb0fe1573ca56f4c4cb9867 (diff) |
Cleaning up with ruff, typechecking, etc.
I am enabling lots of capability in neovim which is resulting in all
this. Don't be scared.
Diffstat (limited to 'pyblackbird_cc/payments/views.py')
-rw-r--r-- | pyblackbird_cc/payments/views.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pyblackbird_cc/payments/views.py b/pyblackbird_cc/payments/views.py index 2e53af8..d02a2ab 100644 --- a/pyblackbird_cc/payments/views.py +++ b/pyblackbird_cc/payments/views.py @@ -2,12 +2,17 @@ import stripe from django.conf import settings from django.contrib.auth.decorators import login_required from django.shortcuts import get_object_or_404 -from django.shortcuts import render, redirect +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 .models import ShoppingCart, CartItem, Price, Product + +from .models import CartItem +from .models import Price +from .models import Product +from .models import ShoppingCart stripe.api_key = settings.STRIPE_SECRET_KEY |