auto recurring testing phase 9
This commit is contained in:
@@ -2,6 +2,7 @@ from django.contrib import admin
|
||||
from .models import (
|
||||
Plan,
|
||||
PrincipalSubscription,
|
||||
StripeProduct,
|
||||
Subscription,
|
||||
WebhookEvent,
|
||||
) # Update this with the correct import path for your models
|
||||
@@ -64,6 +65,24 @@ class PrincipalSubscriptionAdmin(admin.ModelAdmin):
|
||||
admin.site.register(PrincipalSubscription, PrincipalSubscriptionAdmin)
|
||||
|
||||
|
||||
class StripeProductAdmin(admin.ModelAdmin):
|
||||
list_display = ("id", "title", "product_id", "default_price_id")
|
||||
search_fields = ("title", "product_id", "description")
|
||||
list_filter = ("default_price_id",)
|
||||
readonly_fields = ("product_id", "default_price_id")
|
||||
fields = (
|
||||
"title",
|
||||
"description",
|
||||
"metadata",
|
||||
"image_url",
|
||||
"product_id",
|
||||
"default_price_id",
|
||||
)
|
||||
|
||||
|
||||
admin.site.register(StripeProduct, StripeProductAdmin)
|
||||
|
||||
|
||||
@admin.register(WebhookEvent)
|
||||
class WebhookEventAdmin(admin.ModelAdmin):
|
||||
list_display = ("event_id", "received_at", "event_type", "processed_at", "status")
|
||||
|
||||
Reference in New Issue
Block a user