pytask/taskapp/forms/task.py
changeset 18 293692eb8f06
parent 15 c6038cbf8a39
--- a/pytask/taskapp/forms/task.py	Mon Feb 01 11:41:26 2010 +0530
+++ b/pytask/taskapp/forms/task.py	Mon Feb 01 15:00:40 2010 +0530
@@ -19,3 +19,11 @@
     class Meta:
         model = Claim
         fields = ['message']
+
+def AssignTaskForm(choices, instance=None):
+    """ return a form object with appropriate choices """
+    
+    class myform(forms.Form):
+        user = forms.ChoiceField(choices=choices, required=True)
+    form = myform()
+    return form