Stripe checkout #104411

Merged
Anna Sirota merged 61 commits from stripe into main 2024-06-17 18:08:41 +02:00
Showing only changes of commit 9ac0293c98 - Show all commits

View File

@ -9,7 +9,7 @@ from django.dispatch import receiver
import alphabetic_timestamp as ats import alphabetic_timestamp as ats
import django.db.models.signals as django_signals import django.db.models.signals as django_signals
from looper.models import Order from looper.models import Customer, Order
import looper.admin_log import looper.admin_log
import looper.signals import looper.signals
@ -33,8 +33,6 @@ def timebased_order_number():
@receiver(django_signals.post_save, sender=User) @receiver(django_signals.post_save, sender=User)
def create_customer(sender, instance: User, created, raw, **kwargs): def create_customer(sender, instance: User, created, raw, **kwargs):
"""Create Customer on User creation.""" """Create Customer on User creation."""
from looper.models import Customer
if raw: if raw:
return return