I was wondering what's wrong with the form I made.
It's a Date Input text box where it automatically populates the current date.
Could someone point out what's wrong?
from datetime import date
today = date.today()
currentDate = today.strftime("%m/%d/%Y")
class DateInput(forms.DateInput):
input_type = 'date'
class salesForm(forms.Form):
entryDateField = forms.DateField(label="Entry Date", widget=DateInput(attrs={'value': currentDate, 'readonly': 'readonly', 'class':'col-sm-8'}))
