From efdd18048343f2616af155bcf007ffb645c6fa64 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 7 Mar 2011 19:24:27 -0400 Subject: [PATCH] Show document thumbnail in document ocr queue list --- apps/ocr/views.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/ocr/views.py b/apps/ocr/views.py index a3e5d2c4c8..0db902b804 100644 --- a/apps/ocr/views.py +++ b/apps/ocr/views.py @@ -42,6 +42,10 @@ def queue_document_list(request, queue_name='default'): 'object_name':_(u'document queue'), 'extra_columns':[ {'name':'document', 'attribute': lambda x: '%s' % (x.document.get_absolute_url(), x.document) if hasattr(x, 'document') else _(u'Missing document.')}, + {'name':_(u'thumbnail'), 'attribute': + lambda x: '' % (reverse('document_preview', args=[x.id]), + reverse('document_thumbnail', args=[x.id])) + }, {'name':'submitted', 'attribute': lambda x: unicode(x.datetime_submitted).split('.')[0], 'keep_together':True}, {'name':'state', 'attribute': lambda x: x.get_state_display()}, {'name':'result', 'attribute':'result'},