mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -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):
|
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):
|
def fix_script_paths(apps, schema_editor):
|
||||||
|
Loading…
Reference in New Issue
Block a user