Skip to content

Commit

Permalink
Merge pull request #1 from baseplate-admin/address-an-bug
Browse files Browse the repository at this point in the history
Fix an bug with ltree
  • Loading branch information
baseplate-admin authored Feb 22, 2024
2 parents 7ea6567 + a543070 commit 0431658
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 @@ -16,7 +16,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 0431658

Please sign in to comment.