From e09b503ee144c004acb287e00b58bbcef94d494e Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 3 Oct 2020 11:03:22 +0200 Subject: [PATCH] Remove Des from title --- media/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/media/forms.py b/media/forms.py index e137b1a..9a894af 100644 --- a/media/forms.py +++ b/media/forms.py @@ -22,6 +22,7 @@ def generate_side_identifier(title, authors, subtitle=None): title_normalized = title.upper() title_normalized = title_normalized.replace('’', '\'') title_normalized = re.sub(r'^DE ', '', title_normalized) + title_normalized = re.sub(r'^DES ', '', title_normalized) title_normalized = re.sub(r'^LE ', '', title_normalized) title_normalized = re.sub(r'^LA ', '', title_normalized) title_normalized = re.sub(r'^LES ', '', title_normalized)