membersystem/src/utils/mixins.py
Víðir Valberg Guðmundsson 01715a7704
All checks were successful
continuous-integration/drone/push Build is passing
Introduce subscription periods.
2023-01-02 22:13:59 +01:00

12 lines
333 B
Python

from django.db import models
from django.utils.translation import gettext_lazy as _
class CreatedModifiedAbstract(models.Model):
modified = models.DateTimeField(auto_now=True, verbose_name=_("modified"))
created = models.DateTimeField(auto_now_add=True, verbose_name=_("created"))
class Meta:
abstract = True