Compare commits

...

1 Commits

Author SHA1 Message Date
Raphael Michel
a18318bae1 Thumbnails: Store creation date 2022-11-21 18:23:23 +01:00
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 3.2.16 on 2022-11-21 17:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pretixhelpers', '0002_auto_20180320_1219'),
]
operations = [
migrations.AddField(
model_name='thumbnail',
name='created',
field=models.DateTimeField(auto_now_add=True, null=True),
),
]

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'),)