Modellar tayyor

This commit is contained in:
2025-11-24 11:46:23 +05:00
parent 3da10c2a7f
commit 5632e0c484
48 changed files with 877 additions and 33 deletions

View File

@@ -0,0 +1,3 @@
from .ad_type import * # noqa
from .ad_variant_type import * # noqa
from .order_status import * # noqa

View File

@@ -0,0 +1,22 @@
from django.utils.translation import gettext_lazy as _
from django.db import models
class AdType(models.TextChoices):
"""
Ad type choices.
"""
BUY = "Buy", _("Buy")
SELL = "Sell", _("Sell")
class AdCategoryType(models.TextChoices):
"""
Ad category type choices.
"""
PRODUCT = "Product", _("Product")
SERVICE = "Service", _("Service")
AUTO = "Auto", _("Auto")
HOME = "Home", _("Home")

View File

@@ -0,0 +1,11 @@
from django.utils.translation import gettext_lazy as _
from django.db import models
class AdVariantType(models.TextChoices):
"""
Ad variant type choices.
"""
COLOR = "Color", _("Color")
SIZE = "Size", _("Size")

View File

@@ -0,0 +1,12 @@
from django.utils.translation import gettext_lazy as _
from django.db import models
class OrderStatus(models.TextChoices):
"""
Order Status choices.
"""
PENDING = "Pending", _("Pending")
CANCEL = "Cancel", _("Cancel")
DONE = "Done", _("Done")