From d6390118cec842156403aed336d1bce8aa776efd Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Mon, 17 Feb 2025 00:30:28 +0330 Subject: [PATCH] debug push sub --- backend/order/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/order/models.py b/backend/order/models.py index a3f3617..d41f476 100644 --- a/backend/order/models.py +++ b/backend/order/models.py @@ -1,8 +1,10 @@ from django.db import models -from account.models import User, UserAddressModel +from account.models import User, UserAddressModel, PushSubscription from product.models import ProductModel, ProductVariant from django.utils import timezone from .execptions import DiscountNotAvailableError + + class DiscountCode(models.Model): name = models.CharField(max_length=50, verbose_name='کد تخفیف') percent = models.DecimalField(max_digits=4, decimal_places=2, verbose_name='درصد')