Private
Public Access
1
0

hiddenfields

This commit is contained in:
Sander Roosendaal
2022-07-19 21:01:13 +02:00
parent 673731af26
commit 4758be79c0
3 changed files with 12 additions and 4 deletions

View File

@@ -151,8 +151,8 @@ class InstantPlanSelectForm(forms.Form):
# Instroke Metrics interactive chart form
class InstrokeForm(forms.Form):
metric = forms.ChoiceField(label='metric',choices=(('a','a'),('b','b')))
spm_min = forms.IntegerField(initial=15,label='SPM Min')
spm_max = forms.IntegerField(initial=45,label='SPM Max')
spm_min = forms.IntegerField(initial=15,label='SPM Min',widget=HiddenInput)
spm_max = forms.IntegerField(initial=45,label='SPM Max',widget=HiddenInput)
def __init__(self, *args, **kwargs): # pragma: no cover
choices = kwargs.pop('choices', [])