From: Maciej Tronowski Date: Thu, 2 Jul 2015 11:57:45 +0000 (+0200) Subject: fix processing user defined choices in job templates X-Git-Tag: v1.0~1 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=commitdiff_plain;h=f8b36b27d943d226437ff56c6306144f82360822;p=qcg-portal.git fix processing user defined choices in job templates --- diff --git a/qcg/forms.py b/qcg/forms.py index abb5b57..5e93416 100644 --- 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]