mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Sendmail: Force preview and show number of orders (#2099)
This commit is contained in:
@@ -153,7 +153,7 @@ class CachedFileInput(forms.ClearableFileInput):
|
||||
|
||||
@property
|
||||
def is_img(self):
|
||||
return any(self.file.filename.lower().endswith(e) for e in ('.jpg', '.jpeg', '.png', '.gif'))
|
||||
return False # thumbnailing doesn't work since the file isn't available publicly
|
||||
|
||||
def __str__(self):
|
||||
return self.file.filename
|
||||
|
||||
Reference in New Issue
Block a user