Added widget to select the date
This commit is contained in:
parent
ae46c7993d
commit
b2309a2fee
@ -45,6 +45,9 @@ class IncomeForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Income
|
||||
fields = ['account', 'name', 'amount', 'date']
|
||||
widgets = {
|
||||
'date': forms.DateInput(attrs={'type': 'date'})
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
user = kwargs.pop('user')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user