mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
Ensure that the slug is always within the 50 characters it needs to be.
This commit is contained in:
parent
4107cdd125
commit
5a74525446
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class Command(BaseCommand):
|
|||
"""
|
||||
return Category.objects.create(
|
||||
name=string.strip(),
|
||||
slug=slugify(string.strip()),
|
||||
slug=slugify(string.strip())[:49],
|
||||
parent=parent,
|
||||
order=order
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue