Skip to content

Commit

Permalink
Update admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr authored Feb 7, 2025
1 parent 0b633e5 commit 03c90d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions breathecode/monitoring/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
RepositorySubscription,
RepositoryWebhook,
Supervisor,
StripeEvent,
SupervisorIssue,
)
from .signals import github_webhook
Expand Down Expand Up @@ -328,3 +329,12 @@ class NoPaginationAdmin(admin.ModelAdmin):
list_filter = ["method"]
search_fields = ["path", "method"]
actions = [delete_all]



@admin.register(StripeEvent)
class StripeEventAdmin(admin.ModelAdmin):
list_display = ('stripe_id', 'type', 'status', 'updated_at', 'created_at')
list_filter = ('status', 'type')
search_fields = ('stripe_id',)

0 comments on commit 03c90d3

Please sign in to comment.