[Fixed]-How to create a datetimefiled that keeps the last edited time in django

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.

Reference

Leave a comment