Thumbnails: Store creation date (#2920)

This commit is contained in:
Raphael Michel
2022-11-23 14:56:05 +01:00
committed by GitHub
parent b1a3ececad
commit a1075840c6
2 changed files with 19 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ class Thumbnail(models.Model):
source = models.CharField(max_length=255)
size = models.CharField(max_length=255)
thumb = models.FileField(upload_to='pub/thumbs/', max_length=255)
created = models.DateTimeField(auto_now_add=True, null=True)
class Meta:
unique_together = (('source', 'size'),)