Skip to content

Commit a543070

Browse files
Update fields.py
1 parent 7ea6567 commit a543070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_ltree/fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class PathValue(UserList):
1717
def __init__(self, value):
1818
if isinstance(value, str):
19-
split_by = "/" if "/" in str else "."
19+
split_by = "/" if "/" in value else "."
2020
value = value.strip().split(split_by) if value else []
2121
elif isinstance(value, int):
2222
value = [str(value)]

0 commit comments

Comments
 (0)