diff --git a/apps/ocr/views.py b/apps/ocr/views.py
index e3d51a3c0e..4def728b94 100644
--- a/apps/ocr/views.py
+++ b/apps/ocr/views.py
@@ -38,8 +38,8 @@ def queue_document_list(request, queue_name='default'):
'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]))
+ lambda x: '
' % (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()},