diff options
Diffstat (limited to 'pyblackbird_cc/payments/signals.py')
-rw-r--r-- | pyblackbird_cc/payments/signals.py | 7 |
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 |