How to update automatically update_time in django?

For Save the Updated Time in the Table in Django or Python we can use the below command.

This is checked in Database PostgreSQL

updatedon = models.DateTimeField(auto_now=True,null=True)

auto_now=True, It will save the Current time in the database.

Leave a Comment