diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-19 19:43:59 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-19 19:43:59 +0100 |
commit | 1e1a2f6ac2cadfbc57cc855a67498af097391caf (patch) | |
tree | 8e28486d182d6b4746d4feb22347badf21f5465d /alphabetlearning/payments/admin.py | |
parent | ae9bc97c743ea4d31a3f392db72a948d87d3b2ab (diff) |
Changes the Resource to include Stripe reference
Diffstat (limited to 'alphabetlearning/payments/admin.py')
-rw-r--r-- | alphabetlearning/payments/admin.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/alphabetlearning/payments/admin.py b/alphabetlearning/payments/admin.py index f6a00a2..9588f3b 100644 --- a/alphabetlearning/payments/admin.py +++ b/alphabetlearning/payments/admin.py @@ -6,14 +6,14 @@ from .models import Product from .models import ShoppingCart from .models import Subscription from .models import SubscriptionPlan +from alphabetlearning.resources.models import Resource -class PriceInlineAdmin(admin.TabularInline): - model = Price - extra = 0 +#class PriceAdmin(admin.ModelAdmin): +# list_display = -class ProductAdmin(admin.ModelAdmin): - inlines = [PriceInlineAdmin] +#class ProductAdmin(admin.ModelAdmin): +# inlines = [PriceInlineAdmin] class SubscriptionPlanAdmin(admin.ModelAdmin): list_display = ('name', 'price', 'description', 'allowed_downloads') @@ -31,7 +31,8 @@ class SubscriptionAdmin(admin.ModelAdmin): list_display = ('user', 'is_active', 'start_date', 'end_date') -admin.site.register(Product, ProductAdmin) +#admin.site.register(Product, ProductAdmin) +admin.site.register(Price) admin.site.register(SubscriptionPlan) admin.site.register(ShoppingCart) admin.site.register(CartItem) |