Include in context the document for which OCR will be queued.

This commit is contained in:
Roberto Rosario
2015-07-18 03:57:45 -04:00
parent 04b4d9cf4e
commit ec9d7d09a1

View File

@@ -23,7 +23,11 @@ from .permissions import (
class DocumentSubmitView(ConfirmView):
extra_context = {'title': _('Submit the selected document for OCR?')}
def get_extra_context(self):
return {
'object': Document.objects.get(pk=self.kwargs['pk']),
'title': _('Submit the selected document for OCR?')
}
def object_action(self, request, obj):
document = obj