taskapp/forms/task.py
changeset 94 d1f59bbc2685
parent 93 1a1e712e60fd
child 136 8632a44b743d
--- a/taskapp/forms/task.py	Thu Feb 25 06:07:55 2010 +0530
+++ b/taskapp/forms/task.py	Thu Feb 25 16:17:56 2010 +0530
@@ -48,3 +48,11 @@
         user = forms.ChoiceField(choices=choices, required=True)
         points = forms.IntegerField(min_value=0,required=True)
     return myForm(instance) if instance else myForm()
+
+def RemoveUserForm(choices, instance=None):
+
+    class myForm(forms.Form):
+        user = forms.ChoiceField(choices=choices, required=True)
+        reason = forms.CharField(min_length=1, required=True)
+    return myForm(instance) if instance else myForm()
+