removing execptions.py
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
class DiscountNotAvailableError(Exception):
|
|
||||||
pass
|
|
||||||
@@ -2,7 +2,6 @@ from django.db import models
|
|||||||
from account.models import User, UserAddressModel, PushSubscription
|
from account.models import User, UserAddressModel, PushSubscription
|
||||||
from product.models import ProductModel, ProductVariant, ProductImageModel
|
from product.models import ProductModel, ProductVariant, ProductImageModel
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from .execptions import DiscountNotAvailableError
|
|
||||||
from django_jalali.db import models as jmodels
|
from django_jalali.db import models as jmodels
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+4
-13
@@ -1,5 +1,4 @@
|
|||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from .execptions import DiscountNotAvailableError
|
|
||||||
from rest_framework.views import APIView, Response
|
from rest_framework.views import APIView, Response
|
||||||
from django.shortcuts import get_object_or_404
|
from django.shortcuts import get_object_or_404
|
||||||
from product.models import ProductVariant
|
from product.models import ProductVariant
|
||||||
@@ -14,19 +13,11 @@ from azbankgateways.exceptions import AZBankGatewaysException
|
|||||||
from drf_spectacular.utils import extend_schema, OpenApiParameter, OpenApiTypes
|
from drf_spectacular.utils import extend_schema, OpenApiParameter, OpenApiTypes
|
||||||
from utils.pagination import StructurePagination
|
from utils.pagination import StructurePagination
|
||||||
from order.models import OrderModel
|
from order.models import OrderModel
|
||||||
try:
|
|
||||||
pass
|
|
||||||
except DiscountNotAvailableError:
|
|
||||||
pass
|
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
"""
|
# try:
|
||||||
|
# pass
|
||||||
add post
|
# except DiscountNotAvailableError:
|
||||||
remove delete
|
# pass
|
||||||
show get
|
|
||||||
|
|
||||||
pay
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user