diff options
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) |