I have a model (as below) and in that, I've set auto_now_add=True
for the DateTimeField
class Foo(models.Model):
timestamp = models.DateTimeField(auto_now_add=True)
From the doc,
As currently implemented, setting
auto_now
orauto_now_add
toTrue
will cause the field to haveeditable=False
andblank=True
set.
Q: How Can I show this auto_now_add
field in Django Admin? (by default Django Admin doesn't show auto_now_add
fields)