Skip to content

Commit

Permalink
Add searching for wallet using wallet hash in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Sep 15, 2022
1 parent 04dc91b commit 5794702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5794702

Please sign in to comment.