feat(examples): register Order in admin

This commit is contained in:
sankalp committed 2026-09-03 00:41:05 +05:45
1 parent 564c99b345
commit 0826ea50ed
1 file changed
+15
+15
View File
@@ -0,0 +1,15 @@
"""Admin registrations for the example payments app."""
from django.contrib import admin
from .models import Order
@admin.register(Order)
class OrderAdmin(admin.ModelAdmin):
"""Admin for orders with the payment lifecycle fields."""
list_display = ("order_id", "gateway", "amount", "status", "provider_ref", "updated_at")
list_filter = ("gateway", "status")
search_fields = ("order_id", "provider_ref", "lookup_ref")
readonly_fields = ("created_at", "updated_at")