1
You did an auto_now=True
. But that works only when Model.save()
method is called. To populate the DateTimeField
at the time of creation, you need to add another attribute auto_now_add=True
.
Source:stackexchange.com
1
You did an auto_now=True
. But that works only when Model.save()
method is called. To populate the DateTimeField
at the time of creation, you need to add another attribute auto_now_add=True
.