24a3e787dd
* *: migrate to per-model UUID Primary key, remove UUIDModel * *: fix import order, fix unittests
13 lines
301 B
Python
13 lines
301 B
Python
"""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
|