From 8204fa8ee75fbc4921dcb0568614bcabf23493e1 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Fri, 4 Nov 2022 13:48:12 +0530 Subject: [PATCH] test: slugify issue --- lms/lms/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/lms/utils.py b/lms/lms/utils.py index b4480f50..f42d2b26 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -22,7 +22,7 @@ from lms.lms.md import find_macros, markdown_to_html RE_SLUG_NOTALLOWED = re.compile("[^a-z0-9]+") -def slugify(title, used_slugs): +def slugify(title, used_slugs=None): """Converts title to a slug. If a list of used slugs is specified, it will make sure the generated slug