Sendmail: Force preview and show number of orders (#2099)

This commit is contained in:
Raphael Michel
2021-08-18 15:28:33 +02:00
committed by GitHub
parent f5504e11ac
commit c5fe615be5
5 changed files with 110 additions and 38 deletions

View File

@@ -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