fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e515627
)
strip commas in project descriptions
author
Jan Szejko
<janek37@gmail.com>
Thu, 26 Jan 2017 15:52:04 +0000
(16:52 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 26 Jan 2017 15:52:04 +0000
(16:52 +0100)
apps/organizations/forms.py
patch
|
blob
|
history
diff --git
a/apps/organizations/forms.py
b/apps/organizations/forms.py
index
e7e3250
..
98efeab
100644
(file)
--- 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, '