taskapp/forms/task.py
changeset 90 b2426897ff18
parent 89 1cc03941ed5d
child 91 1b5ad4b7c40e
equal deleted inserted replaced
89:1cc03941ed5d 90:b2426897ff18
    37     class myForm(forms.Form):
    37     class myForm(forms.Form):
    38         if is_plain:
    38         if is_plain:
    39             type_choices = [('S','Subtasks'),('D','Dependencies')]
    39             type_choices = [('S','Subtasks'),('D','Dependencies')]
    40             type = forms.ChoiceField(type_choices, widget=forms.RadioSelect)
    40             type = forms.ChoiceField(type_choices, widget=forms.RadioSelect)
    41 
    41 
    42         task = forms.MultipleChoiceField(choices=task_choices)
    42         task = forms.ChoiceField(choices=task_choices)
    43     return myForm()
    43     return myForm()