Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
baseplate-admin committed Feb 22, 2024
1 parent 0431658 commit ecb0a15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion django_ltree/paths.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import string

from itertools import product

from django_ltree.fields import PathValue


class PathGenerator(object):
_alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
# "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
_alphabet = string.digits + string.ascii_letters
_default_label_size = 6 # Postgres limits this to 256

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

0 comments on commit ecb0a15

Please sign in to comment.