Attributes model added.
This commit is contained in:
1
core/apps/api/validators/__init__.py
Normal file
1
core/apps/api/validators/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .attributes import * # noqa
|
||||
22
core/apps/api/validators/attributes.py
Normal file
22
core/apps/api/validators/attributes.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
class SizeValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
|
||||
|
||||
class ColorValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
|
||||
|
||||
class ProductlikeValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
Reference in New Issue
Block a user