Extended primary models to include 'created' and 'last_updated' fields
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class CreatedUpdatedModel(models.Model):
|
||||
created = models.DateField(auto_now_add=True)
|
||||
last_updated = models.DateTimeField(auto_now=True)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
Reference in New Issue
Block a user