Add search to subscription admin

master
Alice 6 years ago
parent b1663d4553
commit 4b056c8ad0

@ -68,6 +68,7 @@ class SubscriptionAdmin(admin.ModelAdmin):
readonly_fields = ('user_link', 'backend', 'period', 'created', 'status', readonly_fields = ('user_link', 'backend', 'period', 'created', 'status',
'last_confirmed_payment', 'payments_links', 'last_confirmed_payment', 'payments_links',
'backend_extid_link', 'backend_data') 'backend_extid_link', 'backend_data')
search_fields = ('user__username', 'user__email', 'backend_extid', 'backend_data')
actions = (subscr_mark_as_cancelled,) actions = (subscr_mark_as_cancelled,)
fieldsets = ( fieldsets = (
(None, { (None, {

Loading…
Cancel
Save