aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/payments/signals.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-09 16:55:09 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-09 16:55:09 +0100
commit0bef50c8097ab52df424c94176e913dcb1d8f7f5 (patch)
treeb1f92c0958062233a84b788e43b2a49695c1f975 /pyblackbird_cc/payments/signals.py
parent31966b6cbef88006056db44448cdaf59ba40533e (diff)
Clean up and sort imports
Diffstat (limited to '')
-rw-r--r--pyblackbird_cc/payments/signals.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pyblackbird_cc/payments/signals.py b/pyblackbird_cc/payments/signals.py
index c4cdf1a..e660440 100644
--- a/pyblackbird_cc/payments/signals.py
+++ b/pyblackbird_cc/payments/signals.py
@@ -1,11 +1,12 @@
from datetime import timedelta
from allauth.account.signals import user_signed_up
-from django.dispatch import receiver
from django.db import transaction
+from django.dispatch import receiver
from django.utils import timezone
-from .models import SubscriptionPlan, Subscription
+from .models import Subscription
+from .models import SubscriptionPlan
@receiver(user_signed_up)
@@ -18,7 +19,7 @@ def assign_default_subscription(sender, request, user, **kwargs):
"price": 0,
"description": "Free plan description",
"allowed_downloads": 10,
- }
+ },
)
# Create a SubscriptionPlan for the new user