Dimitris Kougioumtzis Blog About technology

Django Timestamped Model

Category Django

Posted on Sept. 28, 2017



Django timestamped model


1
2
3
4
5
6
class Timestamped(models.Model):
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        abstract = True

About

My name is Dimitris Kougioumtzis and i work as a Web developer at Rapidbounce Company

Elsewhere