Add recurring column to sustainers admin list

This commit is contained in:
Ben Sturmfels 2024-11-12 14:15:38 +11:00
parent 5338e43e60
commit b2e57836c1
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -15,6 +15,7 @@ class SustainerOrderAdmin(admin.ModelAdmin):
'paid_time',
'payment_method',
'payment_id',
'recurring',
'name',
'email',
'amount',
@ -28,6 +29,6 @@ class SustainerOrderAdmin(admin.ModelAdmin):
'country',
]
readonly_fields = ['created_time', 'paid_time', 'payment_method', 'payment_id']
list_display = ['created_time', 'name', 'email', 'amount', 'paid']
readonly_fields = ['created_time', 'paid_time', 'payment_method', 'payment_id', 'recurring']
list_display = ['created_time', 'name', 'email', 'amount', 'recurring', 'paid_time']
list_filter = ['paid_time']