Thumbnails for images and videos #87
@ -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}})
|
||||
|
Loading…
Reference in New Issue
Block a user