From 932c822c457572e708d9aeca6b71e7d3b726f18c Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 26 Jan 2017 16:52:04 +0100 Subject: [PATCH] strip commas in project descriptions --- apps/organizations/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/organizations/forms.py b/apps/organizations/forms.py index e7e3250d..98efeab0 100644 --- a/apps/organizations/forms.py +++ b/apps/organizations/forms.py @@ -17,7 +17,7 @@ def clean_projects(projects): line = line.strip() if line: try: - url, lang, desc = line.split(None, 2) + url, lang, desc = [part.strip(',') for part in line.split(None, 2)] except ValueError: raise forms.ValidationError( _('Each line has to consist of an Internet address, language and description, ' -- 2.20.1