From f8b36b27d943d226437ff56c6306144f82360822 Mon Sep 17 00:00:00 2001 From: Maciej Tronowski Date: Thu, 2 Jul 2015 13:57:45 +0200 Subject: [PATCH] fix processing user defined choices in job templates --- qcg/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 1.7.9.5