from django.contrib import admin

from transactions.models import OnChainTransaction


@admin.register(OnChainTransaction)
class OnChainTransactionAdmin(admin.ModelAdmin):
    list_display = (
            'id',
            'created_at',
            'tx_hash',
            'address_subscription',
            'num_confs',
            'double_spend',
            'is_deposit',
            'is_withdrawal',
            )
    raw_id_fields = ('address_subscription', )
    search_fields = ('tx_hash', 'address_subscription__b58_address', )

    class Meta:
        model = OnChainTransaction

3ee528f63eae17a6b6b6e17c80d817a489925b01
<mask token>

<mask token>


@admin.register(OnChainTransaction)
class OnChainTransactionAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>


    class Meta:
        model = OnChainTransaction

<mask token>


@admin.register(OnChainTransaction)
class OnChainTransactionAdmin(admin.ModelAdmin):
    list_display = ('id', 'created_at', 'tx_hash', 'address_subscription',
        'num_confs', 'double_spend', 'is_deposit', 'is_withdrawal')
    raw_id_fields = 'address_subscription',
    search_fields = 'tx_hash', 'address_subscription__b58_address'


    class Meta:
        model = OnChainTransaction

from django.contrib import admin
from transactions.models import OnChainTransaction


@admin.register(OnChainTransaction)
class OnChainTransactionAdmin(admin.ModelAdmin):
    list_display = ('id', 'created_at', 'tx_hash', 'address_subscription',
        'num_confs', 'double_spend', 'is_deposit', 'is_withdrawal')
    raw_id_fields = 'address_subscription',
    search_fields = 'tx_hash', 'address_subscription__b58_address'


    class Meta:
        model = OnChainTransaction

from django.contrib import admin

from transactions.models import OnChainTransaction


@admin.register(OnChainTransaction)
class OnChainTransactionAdmin(admin.ModelAdmin):
    list_display = (
            'id',
            'created_at',
            'tx_hash',
            'address_subscription',
            'num_confs',
            'double_spend',
            'is_deposit',
            'is_withdrawal',
            )
    raw_id_fields = ('address_subscription', )
    search_fields = ('tx_hash', 'address_subscription__b58_address', )

    class Meta:
        model = OnChainTransaction
