From 96591dd83a1f699ea839bbaa80a4a1aa2f000422 Mon Sep 17 00:00:00 2001 From: Sayyid Hamid Mahdavi Date: Thu, 15 May 2025 17:12:04 +0330 Subject: [PATCH] add int id --- apps/pg/models.py | 2 +- main/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/pg/models.py b/apps/pg/models.py index 6c1c2ef..b275a21 100644 --- a/apps/pg/models.py +++ b/apps/pg/models.py @@ -51,7 +51,7 @@ class ChargeRequest(models.Model): pna_client = PNAClient() description = 'from addwin ipg' pna_callback_url = f'https://ipg.addwin.ir/page/pna_callback/{self.pk}/' - response = pna_client.request_normal_sale(self.amount, description, pna_callback_url, order_id=3) + response = pna_client.request_normal_sale(self.amount, description, pna_callback_url, order_id=self.id) self.pna_status_code = response['status'] self.pna_status_message = response.get('title') diff --git a/main/settings.py b/main/settings.py index a92225d..ae083ce 100644 --- a/main/settings.py +++ b/main/settings.py @@ -210,7 +210,7 @@ CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5" CRISPY_TEMPLATE_PACK = "bootstrap5" SPECTACULAR_SETTINGS = { - 'TITLE': 'merchants', + 'TITLE': 'IPG', 'DESCRIPTION': 'service api reference', 'VERSION': '1.0.0', 'SERVE_INCLUDE_SCHEMA': False,