Source code for common.models.mixins
"""Mixins for models."""
from django.db import models
[docs]class TimestampedMixin(models.Model):
"""Mixin adding timestamps for creation and last update."""
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)