diff --git a/apps/core/error_handler.py b/apps/core/error_handler.py index 96afa1d..d5ba445 100644 --- a/apps/core/error_handler.py +++ b/apps/core/error_handler.py @@ -1,6 +1,6 @@ from django.http import JsonResponse from rest_framework.views import exception_handler -from django.conf import settings +from Rasaddam_Backend import settings import traceback diff --git a/apps/core/middlewares.py b/apps/core/middlewares.py index 92b878f..3dd5f6b 100644 --- a/apps/core/middlewares.py +++ b/apps/core/middlewares.py @@ -2,7 +2,7 @@ from rest_framework.exceptions import APIException from django.http import JsonResponse from rest_framework import status from django.db import connection -from django.conf import settings +from Rasaddam_Backend import settings import traceback import os diff --git a/apps/pos_device/services/services.py b/apps/pos_device/services/services.py index 9bcc559..8d8ebd9 100644 --- a/apps/pos_device/services/services.py +++ b/apps/pos_device/services/services.py @@ -11,9 +11,9 @@ def pos_organizations_sharing_information(device: Device) -> typing.Any: sharing_information_list = [{ "organization_name": item.organization.name, - # "credit_card": item.organization.bank_information.first().card or "", - # "sheba": item.organization.bank_information.first().sheba, - # "account": item.organization.bank_information.first().account, + "credit_card": item.organization.bank_information.first().card if item.organization.bank_information.exists() else "", + "sheba": item.organization.bank_information.first().sheba, + "account": item.organization.bank_information.first().account, "broker": item.broker.name if item.broker else None, "amount": item.broker_amount.value if item.broker else None } for item in stake_holders]