I have timefield in my model:
time_entered= models.TimeField(default=datetime.now().strftime("%H:%M"))
in forms i am only getting that field to be displayed:
class PrayerForm(forms.ModelForm):
class Meta:
model = Prayer
fields = 'time_entered',
when displaying the page the time is correct but when reloading the page it stays the old value. is it because the default has default of string value? how to fix this?