Skip to content
2 changes: 1 addition & 1 deletion archery/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@
"rest_framework.authentication.SessionAuthentication",
),
# 权限
"DEFAULT_PERMISSION_CLASSES": ("sql_api.permissions.IsInUserWhitelist",),
"DEFAULT_PERMISSION_CLASSES": ("sql_api.permissions.common.IsInUserWhitelist",),
# 限速(anon:未认证用户 user:认证用户)
"DEFAULT_THROTTLE_CLASSES": (
"rest_framework.throttling.AnonRateThrottle",
Expand Down
2 changes: 1 addition & 1 deletion sql/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
)
from sql.utils.resource_group import auth_group_users
from sql.utils.workflow_audit import Audit
from sql_api.serializers import (
from sql_api.serializers.serializers import (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以在 serializers/__init__.py 里面 from .sql_workflow import xxxx

这样之前 import 的不用改, 这个路径也不会显得很奇怪, 你觉得如何

WorkflowContentSerializer,
WorkflowAuditListSerializer,
QueryPrivilegesApplySerializer,
Expand Down
Loading