Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
c80a0899
Commit
c80a0899
authored
Aug 02, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改重定向
parent
ebd92547
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
api_urls.py
apps/assets/urls/api_urls.py
+2
-4
tasks.py
apps/common/tasks.py
+1
-1
No files found.
apps/assets/urls/api_urls.py
View file @
c80a0899
...
...
@@ -94,10 +94,8 @@ urlpatterns = [
]
old_version_urlpatterns
=
[
re_path
(
'(?P<resource>admin
_user|system_
user|domain|gateway|cmd-filter|asset-user)/.*'
,
capi
.
redirect_plural_name_api
)
re_path
(
'(?P<resource>admin
-user|system-
user|domain|gateway|cmd-filter|asset-user)/.*'
,
capi
.
redirect_plural_name_api
)
]
urlpatterns
+=
router
.
urls
+
old_version_urlpatterns
urlpatterns
+=
router
.
urls
+
cmd_filter_router
.
urls
urlpatterns
+=
router
.
urls
+
cmd_filter_router
.
urls
+
old_version_urlpatterns
apps/common/tasks.py
View file @
c80a0899
...
...
@@ -29,6 +29,6 @@ def send_mail_async(*args, **kwargs):
args
=
tuple
(
args
)
try
:
send_mail
(
*
args
,
**
kwargs
)
return
send_mail
(
*
args
,
**
kwargs
)
except
Exception
as
e
:
logger
.
error
(
"Sending mail error: {}"
.
format
(
e
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment