equal
deleted
inserted
replaced
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): |