aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-19 21:35:20 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-19 21:35:20 +0100
commit9b06fa6596def3505af076d6f8807a251c4162e4 (patch)
tree55f15a16aa4ef00f9050eaefac413933d203c3e3 /alphabetlearning/payments/models.py
parent1e1a2f6ac2cadfbc57cc855a67498af097391caf (diff)
Add multiple items to the cart and Stripe process
- Very rough but it works - Multiple items can be added to cart - Can be bought with stripe - Shopping cart is deleted after successful transaction
Diffstat (limited to '')
-rw-r--r--alphabetlearning/payments/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alphabetlearning/payments/models.py b/alphabetlearning/payments/models.py
index 0ad07fb..7bf4164 100644
--- a/alphabetlearning/payments/models.py
+++ b/alphabetlearning/payments/models.py
@@ -14,7 +14,7 @@ class Product(models.Model):
class Price(models.Model):
- resource = models.ForeignKey(Resource, on_delete=models.CASCADE, related_name="price")
+ resource = models.ForeignKey(Resource, on_delete=models.CASCADE, related_name="price_obj")
price = models.IntegerField(default=0)
stripe_price_id = models.CharField(max_length=100)