hi
i need to disable time field:
class PrayerForm(forms.ModelForm):
time_entered = forms.TimeField(label='Current time')
how to do that?
hi
i need to disable time field:
class PrayerForm(forms.ModelForm):
time_entered = forms.TimeField(label='Current time')
how to do that?
How? When? Under what conditions?
If you always want it as a read-only field in the form, see disabled.
this what i got:
time_entered = forms.TimeField(label='Current time', disabled=True