forked from DGNum/gestioCOF
Added help_text to history form
This commit is contained in:
parent
b97bc8bfa8
commit
fa8c57269c
1 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,7 @@ from datetime import timedelta
|
|||
from decimal import Decimal
|
||||
|
||||
from django import forms
|
||||
from django.conf import settings
|
||||
from django.contrib.auth.models import User
|
||||
from django.core import validators
|
||||
from django.core.exceptions import ValidationError
|
||||
|
@ -484,7 +485,14 @@ class KFetConfigForm(ConfigForm):
|
|||
|
||||
|
||||
class FilterHistoryForm(forms.Form):
|
||||
start = forms.DateTimeField(label=_("De"), widget=DateTimeWidget, required=False)
|
||||
start = forms.DateTimeField(
|
||||
label=_("De"),
|
||||
widget=DateTimeWidget,
|
||||
required=False,
|
||||
help_text="L'historique est limité à {} jours".format(
|
||||
settings.KFET_HISTORY_DATE_LIMIT.days
|
||||
),
|
||||
)
|
||||
end = forms.DateTimeField(label=_("À"), widget=DateTimeWidget, required=False)
|
||||
checkout = forms.ModelChoiceField(
|
||||
label=_("Caisse"),
|
||||
|
|
Loading…
Reference in a new issue