changeset 25 | c0e4fc8b8b5b |
parent 22 | 36d3173ab7f9 |
child 50 | d40e86f958f7 |
24:fcae44e94845 | 25:c0e4fc8b8b5b |
---|---|
17 |
17 |
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 |
|
23 def AssignTaskForm(choices, instance=None): |
|
24 """ return a form object with appropriate choices """ |
|
25 |
|
26 class myform(forms.Form): |
|
27 user = forms.ChoiceField(choices=choices, required=True) |
|
28 form = myform() |
|
29 return form |