From a543070ab487bbb515eb81148ce58eab9fa34ab0 Mon Sep 17 00:00:00 2001 From: baseplate-admin <61817579+baseplate-admin@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:35:58 +0600 Subject: [PATCH] Update fields.py --- django_ltree/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_ltree/fields.py b/django_ltree/fields.py index 2fce5dd..fdf383f 100644 --- a/django_ltree/fields.py +++ b/django_ltree/fields.py @@ -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)]