From 4b056c8ad0c137566ab19383606d933633e95afa Mon Sep 17 00:00:00 2001 From: Alice Date: Fri, 12 Apr 2019 20:09:09 +0200 Subject: [PATCH] Add search to subscription admin --- payments/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/payments/admin.py b/payments/admin.py index 3d8db2a..f78951a 100644 --- a/payments/admin.py +++ b/payments/admin.py @@ -68,6 +68,7 @@ class SubscriptionAdmin(admin.ModelAdmin): readonly_fields = ('user_link', 'backend', 'period', 'created', 'status', 'last_confirmed_payment', 'payments_links', 'backend_extid_link', 'backend_data') + search_fields = ('user__username', 'user__email', 'backend_extid', 'backend_data') actions = (subscr_mark_as_cancelled,) fieldsets = ( (None, {