Rename field to show document label as title during thumbnail preview

This commit is contained in:
Roberto Rosario
2015-06-09 20:24:43 -04:00
parent 28932b80b4
commit f3beb3b5e7

View File

@@ -152,7 +152,7 @@ class DocumentsApp(apps.AppConfig):
register_model_list_columns(Document, [
{
'name': _('Thumbnail'), 'attribute':
encapsulate(lambda x: document_thumbnail(x, gallery_name='documents:document_list', title=getattr(x, 'filename', None), size=THUMBNAIL_SIZE))
encapsulate(lambda x: document_thumbnail(x, gallery_name='documents:document_list', title=getattr(x, 'label', None), size=THUMBNAIL_SIZE))
},
{
'name': _('Type'), 'attribute': 'document_type'