Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

工单部分接口调用合并至api #1897

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
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