From 941207eb048e7851df7f446849b241226d07a484 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 7 Jul 2015 20:47:36 -0400 Subject: [PATCH] Don't override get_context_data use get_extra_context for this purpose. --- mayan/apps/acls/views.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/mayan/apps/acls/views.py b/mayan/apps/acls/views.py index 3593e460d0..143a328a58 100644 --- a/mayan/apps/acls/views.py +++ b/mayan/apps/acls/views.py @@ -96,16 +96,11 @@ class ACLCreateView(SingleObjectCreateView): return super(ACLCreateView, self).form_valid(form) - def get_context_data(self, **kwargs): - context = super(ACLCreateView, self).get_context_data(**kwargs) - context.update( - { - 'object': self.content_object, - 'title': _('New access control lists for: %s' % self.content_object), - } - ) - - return context + def get_extra_context(self): + return { + 'object': self.content_object, + 'title': _('New access control lists for: %s' % self.content_object), + } class ACLDeleteView(SingleObjectDeleteView):