Skip to content

Commit ecb0a15

Browse files
add
1 parent 0431658 commit ecb0a15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

django_ltree/paths.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import string
2+
13
from itertools import product
24

35
from django_ltree.fields import PathValue
46

57

68
class PathGenerator(object):
7-
_alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
9+
# "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
10+
_alphabet = string.digits + string.ascii_letters
811
_default_label_size = 6 # Postgres limits this to 256
912

1013
def __init__(self, prefix=None, skip=None, label_size=None):

0 commit comments

Comments
 (0)