taskapp/forms/task.py
changeset 94 d1f59bbc2685
parent 93 1a1e712e60fd
child 136 8632a44b743d
equal deleted inserted replaced
93:1a1e712e60fd 94:d1f59bbc2685
    46     
    46     
    47     class myForm(forms.Form):
    47     class myForm(forms.Form):
    48         user = forms.ChoiceField(choices=choices, required=True)
    48         user = forms.ChoiceField(choices=choices, required=True)
    49         points = forms.IntegerField(min_value=0,required=True)
    49         points = forms.IntegerField(min_value=0,required=True)
    50     return myForm(instance) if instance else myForm()
    50     return myForm(instance) if instance else myForm()
       
    51 
       
    52 def RemoveUserForm(choices, instance=None):
       
    53 
       
    54     class myForm(forms.Form):
       
    55         user = forms.ChoiceField(choices=choices, required=True)
       
    56         reason = forms.CharField(min_length=1, required=True)
       
    57     return myForm(instance) if instance else myForm()
       
    58