diff --git a/docs/configuration/system.md b/docs/configuration/system.md index 8a73f629f..65019626e 100644 --- a/docs/configuration/system.md +++ b/docs/configuration/system.md @@ -232,6 +232,9 @@ STORAGES = { }, "scripts": { "BACKEND": "extras.storage.ScriptFileSystemStorage", + "OPTIONS": { + "allow_overwrite": True, + }, }, } ``` @@ -247,6 +250,7 @@ STORAGES = { "OPTIONS": { 'access_key': 'access key', 'secret_key': 'secret key', + "allow_overwrite": True, } }, } diff --git a/netbox/netbox/configuration_example.py b/netbox/netbox/configuration_example.py index 612f75a40..2a4ffbcca 100644 --- a/netbox/netbox/configuration_example.py +++ b/netbox/netbox/configuration_example.py @@ -243,6 +243,9 @@ SESSION_FILE_PATH = None # }, # "scripts": { # "BACKEND": "extras.storage.ScriptFileSystemStorage", +# "OPTIONS": { +# "allow_overwrite": True, +# }, # }, # } diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 87c20c11e..131f8efdc 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -291,6 +291,9 @@ DEFAULT_STORAGES = { }, "scripts": { "BACKEND": "extras.storage.ScriptFileSystemStorage", + "OPTIONS": { + "allow_overwrite": True, + }, }, } STORAGES = DEFAULT_STORAGES | STORAGES