mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复创建用户common_settings.SITE_URL 为None的bug (#2027)
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