2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-18 10:46:31 +00:00

Fix SITE_URL validator ()

- Closes https://github.com/inventree/InvenTree/issues/6574
This commit is contained in:
Oliver
2024-02-27 16:46:48 +11:00
committed by GitHub
parent 405523881c
commit 0c6334b3b4

@@ -101,7 +101,7 @@ class BaseURLValidator(URLValidator):
value = str(value).strip() value = str(value).strip()
# If a configuration level value has been specified, prevent change # If a configuration level value has been specified, prevent change
if settings.SITE_URL: if settings.SITE_URL and value != settings.SITE_URL:
raise ValidationError(_('Site URL is locked by configuration')) raise ValidationError(_('Site URL is locked by configuration'))
if len(value) == 0: if len(value) == 0: