|
"""Generic models"""
|
|
from django.db import models
|
|
|
|
|
|
class CreatedUpdatedModel(models.Model):
|
|
"""Base Abstract Model to save created and update"""
|
|
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
last_updated = models.DateTimeField(auto_now=True)
|
|
|
|
class Meta:
|
|
abstract = True
|