From 0c6334b3b4c0b01c8abcb6a95a0db24c52325749 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 27 Feb 2024 16:46:48 +1100 Subject: [PATCH] Fix SITE_URL validator (#6585) - Closes https://github.com/inventree/InvenTree/issues/6574 --- InvenTree/common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 82463e216a..f861d30fb3 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -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: