From e8d10bb7a1b4e35105f9742a46dd1853051437a1 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Tue, 3 Aug 2021 08:45:41 +0200 Subject: [PATCH] make EpayPaymentAdmin more useful --- src/shop/admin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/shop/admin.py b/src/shop/admin.py index ea87fbd1..f62564db 100644 --- a/src/shop/admin.py +++ b/src/shop/admin.py @@ -16,12 +16,17 @@ from .models import ( ) admin.site.register(EpayCallback) -admin.site.register(EpayPayment) admin.site.register(CoinifyAPIInvoice) admin.site.register(CoinifyAPICallback) admin.site.register(CoinifyAPIRequest) +@admin.register(EpayPayment) +class EpayPaymentAdmin(admin.ModelAdmin): + list_display = ["id", "order", "callback", "txnid"] + list_display = ["order"] + + @admin.register(Invoice) class InvoiceAdmin(admin.ModelAdmin): list_display = ["id", "order", "customorder", "created", "updated"]