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 product.models import ProductModel, ProductVariant, ProductImageModel
|
||||
from django.utils import timezone
|
||||
from .execptions import DiscountNotAvailableError
|
||||
from django_jalali.db import models as jmodels
|
||||
|
||||
|
||||
|
||||
+4
-13
@@ -1,5 +1,4 @@
|
||||
from django.shortcuts import render
|
||||
from .execptions import DiscountNotAvailableError
|
||||
from rest_framework.views import APIView, Response
|
||||
from django.shortcuts import get_object_or_404
|
||||
from product.models import ProductVariant
|
||||
@@ -14,19 +13,11 @@ from azbankgateways.exceptions import AZBankGatewaysException
|
||||
from drf_spectacular.utils import extend_schema, OpenApiParameter, OpenApiTypes
|
||||
from utils.pagination import StructurePagination
|
||||
from order.models import OrderModel
|
||||
try:
|
||||
pass
|
||||
except DiscountNotAvailableError:
|
||||
pass
|
||||
from django.urls import reverse
|
||||
"""
|
||||
|
||||
add post
|
||||
remove delete
|
||||
show get
|
||||
|
||||
pay
|
||||
"""
|
||||
# try:
|
||||
# pass
|
||||
# except DiscountNotAvailableError:
|
||||
# pass
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user