From abea396091279a9b82ab8c870e8aa952d12cba8d Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 16 Aug 2015 00:16:23 -0400 Subject: [PATCH] Include document in document pages list view context. --- mayan/apps/documents/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mayan/apps/documents/views.py b/mayan/apps/documents/views.py index ed53ca2616..8b4daa76d7 100644 --- a/mayan/apps/documents/views.py +++ b/mayan/apps/documents/views.py @@ -208,7 +208,8 @@ class DocumentPageListView(SingleObjectListView): def get_extra_context(self): return { - 'title': _('Pages for document: %s') % self.get_document(), + 'object': self.get_document(), + 'title': _('Pages for document: %s') % self.get_document(), }