Skip to content

Commit

Permalink
Add index on Session.client_reference_id and .customer_email
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Apr 25, 2024
1 parent 35b7a1f commit 143965e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions djstripe/models/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Session(StripeModel):
"This can be a customer ID, a cart ID, or similar, and"
"can be used to reconcile the session with your internal systems."
),
db_index=True,
)
currency = StripeCurrencyCodeField(null=True, blank=True)
customer = StripeForeignKey(
Expand All @@ -60,6 +61,7 @@ class Session(StripeModel):
help_text=(
"If provided, this value will be used when the Customer object is created."
),
db_index=True,
)
locale = models.CharField(
max_length=255,
Expand Down

0 comments on commit 143965e

Please sign in to comment.