In django - is there a default timestamp field for all objects? That is, do I have to explicitly declare a \'timestamp\' field for \'created on\' in my Model - or is there a way
I think i would go with
created = models.DateTimeField(auto_now_add=True) updated = models.DateTimeField(auto_now=True)
I need some clarifications on using
class TimeStampedModel(models.Model): created_on = models.DateTimeField(auto_now_add=True) class Meta: abstract = True