old_contents: from dps.models import Transaction
  from django.contrib import admin
  from django.contrib.contenttypes import generic
  
  class TransactionAdmin(admin.ModelAdmin):
      pass
  
  
  class TransactionInlineAdmin(generic.GenericTabularInline):
      model = Transaction
  
      def has_add_permission(self, request):
          return False
  
  
  admin.site.register(Transaction, TransactionAdmin)
  
new_contents: from dps.models import Transaction
  from django.contrib import admin
  from django.contrib.contenttypes import generic
  
  class TransactionAdmin(admin.ModelAdmin):
      list_display = ('amount', 'status', 'transaction_type', 'content_object', 
                      'created',)
      search_fields = ('secret', )
  
  
  class TransactionInlineAdmin(generic.GenericTabularInline):
      model = Transaction
  
      def has_add_permission(self, request):
          return False
  
  
  admin.site.register(Transaction, TransactionAdmin)
  
subject: Make the transaction admin a bit more usable