From 0d2a714ec7709be7328c30e2d0dfe320f6901cac Mon Sep 17 00:00:00 2001 From: Cory Zue Date: Thu, 2 Nov 2023 14:06:38 -0400 Subject: [PATCH] update connection admin --- ex-submodules/rapidsms/lib/rapidsms/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ex-submodules/rapidsms/lib/rapidsms/admin.py b/ex-submodules/rapidsms/lib/rapidsms/admin.py index 13cb87e30..1b84dbaef 100644 --- a/ex-submodules/rapidsms/lib/rapidsms/admin.py +++ b/ex-submodules/rapidsms/lib/rapidsms/admin.py @@ -18,11 +18,12 @@ class ContactAdmin(admin.ModelAdmin): class ConnectionAdmin(admin.ModelAdmin): model = Connection - list_display = ["backend", "identity", "contact"] - list_filter = ["backend", "identity", "contact"] + list_display = ["contact", "backend", "identity"] + list_filter = ["backend", "contact"] + search_fields = ["identity"] admin.site.register(App) admin.site.register(Backend) -admin.site.register(Connection) +admin.site.register(Connection, ConnectionAdmin) admin.site.register(Contact, ContactAdmin)