--- 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()
+