From 5794702990aa207dafa604f88e784563ccb9a8a1 Mon Sep 17 00:00:00 2001 From: joemarct Date: Thu, 15 Sep 2022 22:18:45 +0800 Subject: [PATCH] Add searching for wallet using wallet hash in admin --- main/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/admin.py b/main/admin.py index a4dc296e..9a326652 100644 --- a/main/admin.py +++ b/main/admin.py @@ -190,6 +190,10 @@ class WalletAdmin(DynamicRawIDMixin, admin.ModelAdmin): 'project' ] + search_fields = [ + 'wallet_hash' + ] + def rescan_utxos(self, request, queryset): for wallet in queryset: addresses = wallet.addresses.filter(transactions__spent=False)