equal
deleted
inserted
replaced
18 class ClaimTaskForm(forms.ModelForm): |
18 class ClaimTaskForm(forms.ModelForm): |
19 class Meta: |
19 class Meta: |
20 model = Claim |
20 model = Claim |
21 fields = ['message'] |
21 fields = ['message'] |
22 |
22 |
23 def AssignTaskForm(choices, instance=None): |
23 def ChoiceForm(choices, instance=None): |
24 """ return a form object with appropriate choices """ |
24 """ return a form object with appropriate choices """ |
25 |
25 |
26 class myform(forms.Form): |
26 class myform(forms.Form): |
27 user = forms.ChoiceField(choices=choices, required=True) |
27 user = forms.ChoiceField(choices=choices, required=True) |
28 form = myform() |
28 form = myform() |