mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
19529 fix custom script path
This commit is contained in:
parent
2ece669bde
commit
24b1cb9297
@ -7,7 +7,10 @@ from extras.storage import ScriptFileSystemStorage
|
||||
|
||||
|
||||
def normalize(url):
|
||||
return url if urlparse(url).path else url + "/"
|
||||
parsed_url = urlparse(url)
|
||||
if not parsed_url.path.endswith('/'):
|
||||
return url + '/'
|
||||
return url
|
||||
|
||||
|
||||
def fix_script_paths(apps, schema_editor):
|
||||
|
Loading…
Reference in New Issue
Block a user