aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-15 17:00:55 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-15 17:00:55 +0100
commit0215424d7980b46369c95fabf46a89f57c940e0d (patch)
tree3bc5267a7247878e927759f206a6e99ca4ef8a2b
parent1cb215828f193ec4bac25f4dabb08c9aadc34ede (diff)
Sorting imports only
-rw-r--r--pyblackbird_cc/payments/admin.py7
-rw-r--r--pyblackbird_cc/payments/signals.py3
-rw-r--r--pyblackbird_cc/payments/tests/test_models.py5
-rw-r--r--pyblackbird_cc/payments/urls.py3
4 files changed, 13 insertions, 5 deletions
diff --git a/pyblackbird_cc/payments/admin.py b/pyblackbird_cc/payments/admin.py
index 526a1f0..f6a00a2 100644
--- a/pyblackbird_cc/payments/admin.py
+++ b/pyblackbird_cc/payments/admin.py
@@ -1,6 +1,11 @@
from django.contrib import admin
-from .models import ShoppingCart, CartItem, Subscription, SubscriptionPlan, Product, Price
+from .models import CartItem
+from .models import Price
+from .models import Product
+from .models import ShoppingCart
+from .models import Subscription
+from .models import SubscriptionPlan
class PriceInlineAdmin(admin.TabularInline):
diff --git a/pyblackbird_cc/payments/signals.py b/pyblackbird_cc/payments/signals.py
index 24fc1d8..50d988b 100644
--- a/pyblackbird_cc/payments/signals.py
+++ b/pyblackbird_cc/payments/signals.py
@@ -5,7 +5,8 @@ from django.db import transaction
from django.dispatch import receiver
from django.utils import timezone
-from .models import ShoppingCart, Subscription
+from .models import ShoppingCart
+from .models import Subscription
from .models import SubscriptionPlan
diff --git a/pyblackbird_cc/payments/tests/test_models.py b/pyblackbird_cc/payments/tests/test_models.py
index 4dab6e3..39e874f 100644
--- a/pyblackbird_cc/payments/tests/test_models.py
+++ b/pyblackbird_cc/payments/tests/test_models.py
@@ -1,11 +1,12 @@
-from django.core.exceptions import ValidationError
import pytest
from allauth.account.signals import user_signed_up
from django.contrib.auth import get_user_model
+from django.core.exceptions import ValidationError
from django.db import IntegrityError
from django.test import RequestFactory
-from pyblackbird_cc.payments.models import ShoppingCart, Subscription
+from pyblackbird_cc.payments.models import ShoppingCart
+from pyblackbird_cc.payments.models import Subscription
from pyblackbird_cc.payments.models import SubscriptionPlan
User = get_user_model()
diff --git a/pyblackbird_cc/payments/urls.py b/pyblackbird_cc/payments/urls.py
index dcfe3dc..4fdc758 100644
--- a/pyblackbird_cc/payments/urls.py
+++ b/pyblackbird_cc/payments/urls.py
@@ -1,7 +1,8 @@
from django.urls import path
from . import views
-from .views import CancelView, SuccessView
+from .views import CancelView
+from .views import SuccessView
app_name = "payments"