Don't override get_context_data use get_extra_context for this purpose.

This commit is contained in:
Roberto Rosario
2015-07-07 20:47:36 -04:00
parent 69ea0a61e8
commit 941207eb04

View File

@@ -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):