base_models.py 175 B

12345678
  1. from django.db import models
  2. class CreatedModel(models.Model):
  3. created = models.DateTimeField(auto_now_add=True, db_index=True)
  4. class Meta:
  5. abstract = True