Skip to content

Commit 6c04a54

Browse files
authored
Manage Images: Do not display thumbnail for PDF (#10932)
1 parent 935370b commit 6c04a54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dojo/templatetags/display_tags.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
"mark_finding_duplicate": "Mark as duplicate",
7070
}
7171

72-
supported_file_formats = [
72+
supported_thumbnail_file_formats = [
7373
"apng", "avif", "gif", "jpg",
7474
"jpeg", "jfif", "pjpeg", "pjp",
75-
"png", "svg", "webp", "pdf",
75+
"png", "svg", "webp",
7676
]
7777

7878

@@ -860,7 +860,7 @@ def jira_change(obj):
860860
def get_thumbnail(file):
861861
from pathlib import Path
862862
file_format = Path(file.file.url).suffix[1:]
863-
return file_format in supported_file_formats
863+
return file_format in supported_thumbnail_file_formats
864864

865865

866866
@register.filter

0 commit comments

Comments
 (0)