mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
added label to DatePickerFormField
This commit is contained in:
parent
adcb211572
commit
ef64d1e61d
@ -42,6 +42,7 @@ class DatePickerFormField(forms.DateField):
|
||||
def __init__(self, **kwargs):
|
||||
|
||||
help_text = kwargs.get('help_text', _('Enter date'))
|
||||
label = kwargs.get('label', None)
|
||||
required = kwargs.get('required', False)
|
||||
initial = kwargs.get('initial', None)
|
||||
|
||||
@ -56,7 +57,8 @@ class DatePickerFormField(forms.DateField):
|
||||
required=required,
|
||||
initial=initial,
|
||||
help_text=help_text,
|
||||
widget=widget
|
||||
widget=widget,
|
||||
label=label
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user