Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion userena/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ExtraContextTemplateView(TemplateView):
extra_context = None

def get_context_data(self, *args, **kwargs):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, good catch. Thanks.

But this line should also be changed to (self, **kwargs) to make it more consistent. Could you do that? After that I will merge it.

context = super(ExtraContextTemplateView, self).get_context_data(*args, **kwargs)
context = super(ExtraContextTemplateView, self).get_context_data(**kwargs)
if self.extra_context:
context.update(self.extra_context)
return context
Expand Down