categorylanri import qilish qoshildi
This commit is contained in:
2
core/apps/api/validators/__init__.py
Normal file
2
core/apps/api/validators/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .category import * # noqa
|
||||
from .products import * # noqa
|
||||
15
core/apps/api/validators/category.py
Normal file
15
core/apps/api/validators/category.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
class CategoryValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
|
||||
|
||||
class SubcategoryValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
8
core/apps/api/validators/products.py
Normal file
8
core/apps/api/validators/products.py
Normal file
@@ -0,0 +1,8 @@
|
||||
# from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
class ProductsValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
Reference in New Issue
Block a user