Fix SITE_URL validator (#6585)

- 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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: