slugify to a max of 50 and remove date
This commit is contained in:
@@ -106,7 +106,7 @@ def edit_topic_post(topic_id):
|
||||
topic.update({
|
||||
'name': target_name,
|
||||
'description': request.form.get('description').strip(),
|
||||
'slug': slugify(target_name[:50]),
|
||||
'slug': slugify(target_name, max_length=50),
|
||||
})
|
||||
return redirect(url_for('topics.topic_by_id', topic_id=topic.id))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user