diff --git a/src/documents/admin.py b/src/documents/admin.py
index 9b515864f..055069bce 100644
--- a/src/documents/admin.py
+++ b/src/documents/admin.py
@@ -12,8 +12,9 @@ class DocumentAdmin(admin.ModelAdmin):
save_on_top = True
def thumbnail(self, obj):
- return '
'.format(
- settings.MEDIA_URL, obj.pk)
+ return '' \
+ '
' \
+ ''.format(media=settings.MEDIA_URL, pk=obj.pk)
thumbnail.allow_tags = True
def pdf(self, obj):