mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 02:47:49 +00:00
Logic fix
This commit is contained in:
1 parent
79dad13328
commit
47e47b4bde
1 file changed
+1
-1
@@ -38,7 +38,7 @@ class InvenTreeRestURLField(RestURLField):
|
||||
|
||||
if not strict_urls and data is not empty and data is not None:
|
||||
data = str(data).strip()
|
||||
if '://' not in data:
|
||||
if data and '://' not in data:
|
||||
# Validate as if there were a schema provided
|
||||
data = 'http://' + data
|
||||
|
||||
|
||||
Reference in new issue
Block a user