Files
@ 1064a12981d7
Branch filter:
Location: website/conservancy/supporters/admin.py - annotation
1064a12981d7
815 B
text/x-python
Bring Stripe sustainer form into "Become a sustainer" page
462cbc396354 b7e2ce2a4d44 26a6928a2046 b7e2ce2a4d44 462cbc396354 440b4f864a7a 462cbc396354 462cbc396354 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 a74244efb44e a74244efb44e 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 26a6928a2046 a74244efb44e 26a6928a2046 26a6928a2046 | from django.contrib import admin
from .models import Supporter, SustainerOrder
@admin.register(Supporter)
class SupporterAdmin(admin.ModelAdmin):
list_display = ('display_name', 'display_until_date')
@admin.register(SustainerOrder)
class SustainerOrderAdmin(admin.ModelAdmin):
fields = [
'created_time',
'paid_time',
'payment_method',
'payment_id',
'name',
'email',
'amount',
'acknowledge_publicly',
'add_to_mailing_list',
'tshirt_size',
'street',
'city',
'state',
'zip_code',
'country',
]
readonly_fields = ['created_time', 'paid_time', 'payment_method', 'payment_id']
list_display = ['created_time', 'name', 'email', 'amount', 'paid']
list_filter = ['paid_time']
|