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 3cd73f87d1 - Show all commits

View File

@ -94,9 +94,8 @@ class SubscriptionEmailPreviewAdmin(looper.admin.mixins.NoAddDeleteMixin, EmailA
def get_object(self, request, object_id, from_field=None):
"""Construct the Email on th fly from known subscription email templates."""
user = User(full_name='Jane Doe')
customer = looper.models.Customer()
customer = looper.models.Customer(user=user)
user.customer = customer
customer.user = user
now = timezone.now()
subscription = looper.models.Subscription(
id=1234567890,