Skip to content

Commit

Permalink
Increase the maximum length of SlugAttribute to 90
Browse files Browse the repository at this point in the history
  • Loading branch information
YinHoon committed Jan 21, 2020
1 parent 2f71381 commit c7b7101
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obj_tables/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4671,7 +4671,7 @@ def __init__(self, verbose_name='', description=None, primary=True, unique=True)
if description is None:
description = ("Enter a unique string identifier that "
"(a) is composed of letters, numbers and underscores; "
"(b) is 63 characters or less; and "
"(b) is 90 characters or less; and "
"(c) is not a decimal, hexadecimal, or scientific number")

super(SlugAttribute, self).__init__(pattern=(r'^(?!(^|\b)'
Expand All @@ -4682,7 +4682,7 @@ def __init__(self, verbose_name='', description=None, primary=True, unique=True)
r')'
r'[a-z0-9_]+$'),
flags=re.I,
min_length=1, max_length=63,
min_length=1, max_length=90,
verbose_name=verbose_name, description=description,
primary=primary, unique=unique)

Expand Down

0 comments on commit c7b7101

Please sign in to comment.