aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"