diff --git a/media/forms.py b/media/forms.py index 7586c5e..fd0418b 100644 --- a/media/forms.py +++ b/media/forms.py @@ -116,7 +116,8 @@ class MediaAdminForm(ModelForm): # Normalize side identifier, in order to remove accents side_identifier = ''.join( char - for char in unicodedata.normalize('NFKD', side_identifier.casefold()) + for char in unicodedata.normalize( + 'NFKD', side_identifier.casefold()) if all(not unicodedata.category(char).startswith(cat) for cat in {'M', 'P', 'Z', 'C'}) or char == ' ' ).casefold().upper()