mirror of
https://github.com/pretix/pretix.git
synced 2026-09-15 16:34:42 +00:00
Add custom thumbnailer
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Thumbnail(models.Model):
|
||||
source = models.CharField(max_length=255)
|
||||
size = models.CharField(max_length=255)
|
||||
thumb = models.FileField(upload_to='pub/thumbs/')
|
||||
|
||||
class Meta:
|
||||
unique_together = (('source', 'size'),)
|
||||
Reference in New Issue
Block a user