mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-06 02:11:16 +00:00
Fix SITE_URL validator (#6585)
- Closes https://github.com/inventree/InvenTree/issues/6574
This commit is contained in:
1 parent
405523881c
commit
0c6334b3b4
1 file changed
+1
-1
@@ -101,7 +101,7 @@ class BaseURLValidator(URLValidator):
|
||||
value = str(value).strip()
|
||||
|
||||
# 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'))
|
||||
|
||||
if len(value) == 0:
|
||||
|
||||
Reference in new issue
Block a user