projects
/
qcg-portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0273b
)
fix processing user defined choices in job templates
author
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 2 Jul 2015 11:57:45 +0000
(13:57 +0200)
committer
Maciej Tronowski
<mtro@man.poznan.pl>
Thu, 2 Jul 2015 11:57:45 +0000
(13:57 +0200)
qcg/forms.py
patch
|
blob
|
history
diff --git
a/qcg/forms.py
b/qcg/forms.py
index
abb5b57
..
5e93416
100644
(file)
--- a/
qcg/forms.py
+++ b/
qcg/forms.py
@@
-237,7
+237,7
@@
class JobDescriptionForm(forms.Form):
def _init_user_choices(self, name, data, initial):
initial = initial.get(name) if initial is not None else None
- choices = data.getlist(name) if data is not None else []
+ choices = data.getlist(name)[:] if data is not None else []
if initial:
choices += initial if isinstance(initial, list) else [initial]