mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 06:57:57 +00:00
Url fix 2 (#9548)
* Logic fix
* Playwright test
* Revert "Playwright test"
This reverts commit a63b23961e.
* Simplify test
* Cleanup test
This commit is contained in:
1 parent
0de8e61d53
commit
e249a21622
2 files changed
+25
-1
No files matched your search
@@ -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