mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-23 13:37:31 +00:00
[Bugfix] 修复创建用户common_settings.SITE_URL 为None的bug (#2027)
This commit is contained in:
parent
fd6e561d4b
commit
28b6144189
@ -38,7 +38,8 @@ def reverse(view_name, urlconf=None, args=None, kwargs=None,
|
||||
|
||||
if external:
|
||||
from common.models import common_settings
|
||||
url = common_settings.SITE_URL.strip('/') + url
|
||||
site_url = common_settings.SITE_URL or settings.SITE_URL
|
||||
url = site_url.strip('/') + url
|
||||
return url
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user