Answers for "auto datetime in django models"

1

auto datetime in django models

class MyModel(models.Model):
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)
Posted by: Guest on August-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language