From a1e4fbcc52409215cb6829d71bff0d73e4ff3568 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Tue, 27 May 2025 11:18:49 +0330 Subject: [PATCH] hide fake payment --- apps/pg/admin.py | 10 +++++++--- templates/pg/payment-request.html | 6 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apps/pg/admin.py b/apps/pg/admin.py index b2d6bf0..35c00a8 100644 --- a/apps/pg/admin.py +++ b/apps/pg/admin.py @@ -1,8 +1,12 @@ from django.contrib import admin -from .models import PaymentRequest +from .models import PaymentRequest, PNA + +class PNAAdmin(admin.ModelAdmin): + list_display = ['pna_status_code', 'pna_status_message', 'created_at', 'payment_request'] class PaymentRequestAdmin(admin.ModelAdmin): - list_display = ['uuid', 'amount', 'user_id'] + list_display = ['uuid', 'amount', 'user_id', 'created_at'] -admin.site.register(PaymentRequest, PaymentRequestAdmin) \ No newline at end of file +admin.site.register(PaymentRequest, PaymentRequestAdmin) +admin.site.register(PNA, PNAAdmin) \ No newline at end of file diff --git a/templates/pg/payment-request.html b/templates/pg/payment-request.html index 3948d4a..dc71e4e 100644 --- a/templates/pg/payment-request.html +++ b/templates/pg/payment-request.html @@ -26,9 +26,9 @@ - +{# #}