Search by foreign key id in admin
as with the other admin options, you need to use __ for foreign keys e.g.
search_fields = ['id', 'transaction__id']
You can also perform a related lookup on a ForeignKey or ManyToManyField with the lookup API "follow" notation
Solution:
search_fields = ['id', 'transaction__id']