Skip to content

Commit

Permalink
Merge pull request #26 from baseplate-admin/patch-3
Browse files Browse the repository at this point in the history
Check in `value` instead of `str`
  • Loading branch information
mariocesar authored Dec 19, 2024
2 parents 7a33391 + 2eb113a commit ba1f35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_ltree/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class PathValue(UserList):
def __init__(self, value):
if isinstance(value, str):
split_by = "/" if "/" in str else "."
split_by = "/" if "/" in value else "."
value = value.strip().split(split_by) if value else []
elif isinstance(value, int):
value = [str(value)]
Expand Down

0 comments on commit ba1f35d

Please sign in to comment.