mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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…
Reference in New Issue
Block a user