from django db import models from history import History class Entity

1
2
3
4
5
6
7
from django.db import models
from history import History
class Entity( models.Model ):
name = model.CharField()
last_update = models.DateTimeField( auto_now=True )
history = History(exclude_fields=('last_update')