From d0c4e22c88d0509418e5dbb092d6cfda5bbb81ae Mon Sep 17 00:00:00 2001 From: Maciej Tronowski Date: Wed, 4 Mar 2015 17:34:34 +0100 Subject: [PATCH] fixes for updated api --- qcg/forms.py | 2 +- qcg/templates/qcg/job_new.html | 13 ++----------- qcg/views.py | 18 +++++++++--------- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/qcg/forms.py b/qcg/forms.py index 7d53c7c..a3524d5 100644 --- a/qcg/forms.py +++ b/qcg/forms.py @@ -116,7 +116,7 @@ class JobDescriptionForm(forms.Form): note = forms.CharField(label=u"Opis", widget=forms.Textarea(attrs={'rows': 2, 'cols': 40}), required=False) grant = forms.CharField(label=u"Grant", max_length=100, required=False) - host = forms.ChoiceField(label=u"Host", choices=Host.CHOICES, required=False) + host = forms.MultipleChoiceField(label=u"Host", choices=Host.CHOICES, required=False) properties = forms.MultipleChoiceField(label=u"Właściwości węzłów", required=False) queue = forms.ChoiceField(choices=QUEUE_CHOICES, label=u"Kolejka", required=False) procs = forms.IntegerField(label=u"Liczba procesów", min_value=0, required=False) diff --git a/qcg/templates/qcg/job_new.html b/qcg/templates/qcg/job_new.html index f2f55c2..7929749 100644 --- a/qcg/templates/qcg/job_new.html +++ b/qcg/templates/qcg/job_new.html @@ -3,19 +3,15 @@ {% block extra_css %} - {% endblock %} {% block extra_js %} - - -