From e79542a84d2f5c0d4f96ad70b20127947a2380c0 Mon Sep 17 00:00:00 2001 From: Domenico Date: Mon, 26 Aug 2024 11:06:24 +0200 Subject: [PATCH] tweak fc admin (#4160) --- backend/hct_mis_api/apps/erp_datahub/admin.py | 1 + backend/hct_mis_api/apps/mis_datahub/admin.py | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/hct_mis_api/apps/erp_datahub/admin.py b/backend/hct_mis_api/apps/erp_datahub/admin.py index 6bb0eaa3ba..4fb63f9094 100644 --- a/backend/hct_mis_api/apps/erp_datahub/admin.py +++ b/backend/hct_mis_api/apps/erp_datahub/admin.py @@ -125,6 +125,7 @@ class FundsCommitmentAdmin(HOPEModelAdminBase): ) date_hierarchy = "create_date" form = FundsCommitmentAddForm + search_fields = ("rec_serial_number", "vendor_id", "wbs_element", "funds_commitment_number") @atomic(using="cash_assist_datahub_erp") @atomic(using="default") diff --git a/backend/hct_mis_api/apps/mis_datahub/admin.py b/backend/hct_mis_api/apps/mis_datahub/admin.py index 481766153c..cabbf6d099 100644 --- a/backend/hct_mis_api/apps/mis_datahub/admin.py +++ b/backend/hct_mis_api/apps/mis_datahub/admin.py @@ -129,6 +129,7 @@ def household(self, button: button) -> Optional[str]: @admin.register(FundsCommitment) class FundsCommitmentAdmin(HUBAdminMixin): filters = (BusinessAreaFilter,) + search_fields = ("rec_serial_number", "vendor_id", "wbs_element", "funds_commitment_number") @admin.register(DownPayment)