summaryrefslogtreecommitdiff
path: root/releng
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-05-02 11:18:39 -0500
committerDan McGee <dan@archlinux.org>2011-05-02 11:18:39 -0500
commit2d02bf77196b830f3c0022306188147f998afe0b (patch)
treeb9eb707ed75ba84c9077184dc819d95740a81d92 /releng
parent8544eb9bc36982540ce1cdcabff824a7a73fdb6e (diff)
releng: fix FS#24021, allow unselection of rollback FS
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'releng')
-rw-r--r--releng/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/releng/views.py b/releng/views.py
index f23869f7..f3c48cc1 100644
--- a/releng/views.py
+++ b/releng/views.py
@@ -8,10 +8,10 @@ from .models import (Architecture, BootType, Bootloader, ClockChoice,
Filesystem, HardwareType, InstallType, Iso, IsoType, Module, Source,
Test)
-def standard_field(model, help_text=None, required=True):
+def standard_field(model, empty_label=None, help_text=None, required=True):
return forms.ModelChoiceField(queryset=model.objects.all(),
- widget=forms.RadioSelect(), empty_label=None, help_text=help_text,
- required=required)
+ widget=forms.RadioSelect(), empty_label=empty_label,
+ help_text=help_text, required=required)
class TestForm(forms.ModelForm):
iso = forms.ModelChoiceField(queryset=Iso.objects.filter(active=True))
@@ -30,7 +30,7 @@ class TestForm(forms.ModelForm):
rollback_filesystem = standard_field(Filesystem,
help_text="If you did a rollback followed by a new attempt to setup " \
"your lockdevices/filesystems, select which option you took here.",
- required=False)
+ empty_label="N/A (did not rollback)", required=False)
rollback_modules = forms.ModelMultipleChoiceField(queryset=Module.objects.all(),
help_text="If you did a rollback followed b a new attempt to setup " \
"your lockdevices/filesystems, select which option you took here.",