mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Thumbnails: Store creation date (#2920)
This commit is contained in:
18
src/pretix/helpers/migrations/0003_thumbnail_created.py
Normal file
18
src/pretix/helpers/migrations/0003_thumbnail_created.py
Normal 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),
|
||||
),
|
||||
]
|
||||
@@ -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'),)
|
||||
|
||||
Reference in New Issue
Block a user