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