Thumbnails for images and videos #87

Merged
Anna Sirota merged 28 commits from thumbnails into main 2024-04-25 17:50:58 +02:00
Showing only changes of commit 2c3d157cb8 - Show all commits

View File

@ -66,7 +66,7 @@ class FileAdmin(admin.ModelAdmin):
raise
def get_form(self, request, obj=None, **kwargs):
"""Override metadata help text for depending on type."""
"""Override metadata help text depending on file type."""
if obj and (obj.is_image or obj.is_video):
help_text = 'Additional information about the file, e.g. existing thumbnails.'
kwargs.update({'help_texts': {'metadata': help_text}})