import settings from base for middleware & error handler drf
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
from rest_framework.views import exception_handler
|
from rest_framework.views import exception_handler
|
||||||
from django.conf import settings
|
from Rasaddam_Backend import settings
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from rest_framework.exceptions import APIException
|
|||||||
from django.http import JsonResponse
|
from django.http import JsonResponse
|
||||||
from rest_framework import status
|
from rest_framework import status
|
||||||
from django.db import connection
|
from django.db import connection
|
||||||
from django.conf import settings
|
from Rasaddam_Backend import settings
|
||||||
import traceback
|
import traceback
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ def pos_organizations_sharing_information(device: Device) -> typing.Any:
|
|||||||
|
|
||||||
sharing_information_list = [{
|
sharing_information_list = [{
|
||||||
"organization_name": item.organization.name,
|
"organization_name": item.organization.name,
|
||||||
# "credit_card": item.organization.bank_information.first().card or "",
|
"credit_card": item.organization.bank_information.first().card if item.organization.bank_information.exists() else "",
|
||||||
# "sheba": item.organization.bank_information.first().sheba,
|
"sheba": item.organization.bank_information.first().sheba,
|
||||||
# "account": item.organization.bank_information.first().account,
|
"account": item.organization.bank_information.first().account,
|
||||||
"broker": item.broker.name if item.broker else None,
|
"broker": item.broker.name if item.broker else None,
|
||||||
"amount": item.broker_amount.value if item.broker else None
|
"amount": item.broker_amount.value if item.broker else None
|
||||||
} for item in stake_holders]
|
} for item in stake_holders]
|
||||||
|
|||||||
Reference in New Issue
Block a user