aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-17 17:25:48 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-17 17:25:48 +0100
commit4a7fe21ec2b5b93734a4f6d0e1736292629248c8 (patch)
treecb34baeffec37aee6fd68b2c60bf54d3f7910632 /alphabetlearning/payments/models.py
parenteeaddb27560d723ca7d61359744ceb2709fccd2d (diff)
Update Stripe and include the API key
Diffstat (limited to 'alphabetlearning/payments/models.py')
-rw-r--r--alphabetlearning/payments/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/alphabetlearning/payments/models.py b/alphabetlearning/payments/models.py
index 80d93c2..62bcbde 100644
--- a/alphabetlearning/payments/models.py
+++ b/alphabetlearning/payments/models.py
@@ -9,6 +9,9 @@ class Product(models.Model):
name = models.CharField(max_length=255)
stripe_product_id = models.CharField(max_length=100)
+ def __str__(self):
+ return self.name
+
class Price(models.Model):
product = models.ForeignKey(Product, on_delete=models.CASCADE)