Include in context the document for which OCR will be queued.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user