Fixed OCR queue list showing wrong thumbnail

This commit is contained in:
Roberto Rosario
2011-03-09 12:59:16 -04:00
parent 39376269e8
commit f1771158d6

View File

@@ -38,8 +38,8 @@ def queue_document_list(request, queue_name='default'):
'extra_columns':[
{'name':'document', 'attribute': lambda x: '<a href="%s">%s</a>' % (x.document.get_absolute_url(), x.document) if hasattr(x, 'document') else _(u'Missing document.')},
{'name':_(u'thumbnail'), 'attribute':
lambda x: '<a class="fancybox" href="%s"><img src="%s" /></a>' % (reverse('document_preview', args=[x.id]),
reverse('document_thumbnail', args=[x.id]))
lambda x: '<a class="fancybox" href="%s"><img src="%s" /></a>' % (reverse('document_preview', args=[x.document.id]),
reverse('document_thumbnail', args=[x.document.id]))
},
{'name':'submitted', 'attribute': lambda x: unicode(x.datetime_submitted).split('.')[0], 'keep_together':True},
{'name':'state', 'attribute': lambda x: x.get_state_display()},