weekno = datetime.datetime.today().weekday()if weekno<5:
x =("Weekend")Day_Of_Week= forms.ChoiceField(choices=Day_Of_Week, widget=forms.RadioSelect, initial=x)
For example, from the forms.py you can see I'm expecting the radio button to be auto selected as weekday or weekend. But none is selected. Im confused, am I doing anything wrong with get/put? Any fix for the above will be appreciated..