taskapp/forms/task.py
changeset 136 8632a44b743d
parent 94 d1f59bbc2685
child 151 d0cb85ba462a
equal deleted inserted replaced
135:0ede6b2c5cd1 136:8632a44b743d
    44 
    44 
    45 def AssignCreditForm(choices, instance=None):
    45 def AssignCreditForm(choices, instance=None):
    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         pynts = forms.IntegerField(min_value=0, required=True, help_text="Choose wisely since it cannot be undone.")
    50     return myForm(instance) if instance else myForm()
    50     return myForm(instance) if instance else myForm()
    51 
    51 
    52 def RemoveUserForm(choices, instance=None):
    52 def RemoveUserForm(choices, instance=None):
    53 
    53 
    54     class myForm(forms.Form):
    54     class myForm(forms.Form):