taskapp/forms/task.py
changeset 92 c99f09bebe56
parent 91 1b5ad4b7c40e
child 93 1a1e712e60fd
--- a/taskapp/forms/task.py	Thu Feb 25 04:01:11 2010 +0530
+++ b/taskapp/forms/task.py	Thu Feb 25 04:38:50 2010 +0530
@@ -20,11 +20,11 @@
         model = Claim
         fields = ['message']
 
-def ChoiceForm(choices, instance=None):
+def ChoiceForm(choices):
     """ return a form object with appropriate choices """
     
     class myform(forms.Form):
-        user = forms.ChoiceField(choices=choices, required=True)
+        choice = forms.ChoiceField(choices=choices, required=True)
     form = myform()
     return form