mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Comparison for file extensions should be case insensitive (#1563)
This commit is contained in:
committed by
GitHub
parent
fd1c964c92
commit
833cd32578
@@ -900,7 +900,7 @@ class QuestionAnswer(models.Model):
|
||||
|
||||
@property
|
||||
def is_image(self):
|
||||
return any(self.file.name.endswith(e) for e in ('.jpg', '.png', '.gif', '.tiff', '.bmp', '.jpeg'))
|
||||
return any(self.file.name.lower().endswith(e) for e in ('.jpg', '.png', '.gif', '.tiff', '.bmp', '.jpeg'))
|
||||
|
||||
@property
|
||||
def file_name(self):
|
||||
|
||||
Reference in New Issue
Block a user