I have a ModelForm with the following field definition:
updated_at = models.DateTimeField("Last-Modified", auto_now=True)
And when I do this in my form:
class Meta:
model = Page
fields = ('title', 'views', 'updated_at')
I get: Unknown field(s) (updated_at) specified for Page
exception.
If I remove auto_now=True
it works but I don't want to do that. I just want to display updated_at
in my template, it will not be manually editable.