first commit
This commit is contained in:
1
core/apps/blog/validators/__init__.py
Normal file
1
core/apps/blog/validators/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .post import * # noqa
|
||||
29
core/apps/blog/validators/post.py
Normal file
29
core/apps/blog/validators/post.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# from django.core.exceptions import ValidationError
|
||||
|
||||
|
||||
class PostValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
|
||||
|
||||
class TagValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
|
||||
|
||||
class CategoryValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
|
||||
|
||||
class PostimagesValidator:
|
||||
def __init__(self): ...
|
||||
|
||||
def __call__(self):
|
||||
return True
|
||||
Reference in New Issue
Block a user