Commit c714c215 authored by fred's avatar fred
Browse files

load-from-spip: limit new slugified titles to 40 characters

parent b88fdd63
......@@ -401,7 +401,7 @@ class Command(BaseCommand):
possible_slugs = [article.url.lower()]
if article.url.lower().startswith('nouvel-article'):
possible_slugs.append(slugify(unicode(article.titre)) + '-%s' % article.id_article)
possible_slugs.append(slugify(unicode(article.titre))[:40] + '-%s' % article.id_article)
for slug in possible_slugs:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment