summaryrefslogtreecommitdiff
path: root/pedidos-ya/app/core/models.py
blob: a68c513de888aa9c0c2ae906869ee9ee986107ab (plain)
1
2
3
4
5
6
7
8
9
10
from django.db import models


class TimeStampMixin(models.Model):
    """Mixin to add created_at and updated_at to all models"""
    created_at = models.DateTimeField(auto_now_add=True)
    updated_at = models.DateTimeField(auto_now=True)

    class Meta:
        abstract = True