Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions enterprise_access/apps/customer_billing/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,17 @@ class StripeEventSummaryAdmin(DjangoQLSearchMixin, admin.ModelAdmin):
'created',
'checkout_intent_id',
'subscription_plan_uuid',
'future_subscription_plan_uuid',
'subscription_plan_renewal_uuid',
]
list_filter = [
'event_type',
]
search_fields = [
'event_id',
'subscription_plan_uuid',
'future_subscription_plan_uuid',
'subscription_plan_renewal_uuid',
]
select_related = [
'checkout_intent',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.25 on 2025-10-30 13:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('customer_billing', '0016_alter_checkoutintent_uuid_and_more'),
]

operations = [
migrations.AddField(
model_name='stripeeventsummary',
name='future_subscription_plan_uuid',
field=models.UUIDField(blank=True, db_index=True, help_text='UUID of the future SubscriptionPlan from License Manager', null=True),
),
migrations.AddField(
model_name='stripeeventsummary',
name='subscription_plan_renewal_uuid',
field=models.UUIDField(blank=True, db_index=True, help_text='UUID of the SubscriptionPlanRenewal from License Manager, which relates the (current) plan to the future plan', null=True),
),
]
15 changes: 15 additions & 0 deletions enterprise_access/apps/customer_billing/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,21 @@ class StripeEventSummary(TimeStampedModel):
db_index=True,
help_text='UUID of the SubscriptionPlan from License Manager'
)
future_subscription_plan_uuid = models.UUIDField(
null=True,
blank=True,
db_index=True,
help_text='UUID of the future SubscriptionPlan from License Manager'
)
subscription_plan_renewal_uuid = models.UUIDField(
null=True,
blank=True,
db_index=True,
help_text=(
'UUID of the SubscriptionPlanRenewal from License Manager, '
'which relates the (current) plan to the future plan'
),
)

# Stripe object identification
stripe_object_type = models.CharField(
Expand Down