diff --git a/ledger/admin.py b/ledger/admin.py index f117cc5..a259f62 100644 --- a/ledger/admin.py +++ b/ledger/admin.py @@ -6,6 +6,7 @@ class TransactionAdmin(admin.ModelAdmin): list_display = ['agent_from', 'agent_to', 'amount', 'batch_id', 'transaction_type', 'reason', 'from_deposit', 'date_created'] + search_fields = ['agent_from', 'agent_to'] def agent_from(self, instance): return instance.agent_from