Attributes model added.
This commit is contained in:
1
core/apps/api/permissions/__init__.py
Normal file
1
core/apps/api/permissions/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .attributes import * # noqa
|
||||
34
core/apps/api/permissions/attributes.py
Normal file
34
core/apps/api/permissions/attributes.py
Normal file
@@ -0,0 +1,34 @@
|
||||
from rest_framework import permissions
|
||||
|
||||
|
||||
class SizePermission(permissions.BasePermission):
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self
|
||||
|
||||
def has_permission(self, request, view):
|
||||
return True
|
||||
|
||||
|
||||
class ColorPermission(permissions.BasePermission):
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self
|
||||
|
||||
def has_permission(self, request, view):
|
||||
return True
|
||||
|
||||
|
||||
class ProductlikePermission(permissions.BasePermission):
|
||||
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
def __call__(self, *args, **kwargs):
|
||||
return self
|
||||
|
||||
def has_permission(self, request, view):
|
||||
return True
|
||||
Reference in New Issue
Block a user