mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Fix SITE_URL validator (#6585)
- Closes https://github.com/inventree/InvenTree/issues/6574
This commit is contained in:
parent
405523881c
commit
0c6334b3b4
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user