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