mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +00:00
Avoid negative value in refilings
This commit is contained in:
parent
ccd67e50b8
commit
0d918d80d3
@ -59,12 +59,10 @@ class GetUserForm(forms.Form):
|
||||
class RefillForm(forms.ModelForm):
|
||||
error_css_class = 'error'
|
||||
required_css_class = 'required'
|
||||
amount = forms.FloatField(min_value=0, widget=forms.NumberInput(attrs={'class':'focus'}))
|
||||
class Meta:
|
||||
model = Refilling
|
||||
fields = ['amount', 'payment_method', 'bank']
|
||||
widgets = {
|
||||
'amount': forms.NumberInput(attrs={'class':'focus'},)
|
||||
}
|
||||
|
||||
class CounterTabsMixin(TabedViewMixin):
|
||||
def get_tabs_title(self):
|
||||
|
Loading…
Reference in New Issue
Block a user