Skip to content

Commit d05b762

Browse files
committed
Use same get_context_data method definition
1 parent 9c30a55 commit d05b762

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

readthedocs/builds/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def _get_versions(self, project):
8787

8888
class BuildList(BuildBase, BuildTriggerMixin, ListView):
8989

90-
def get_context_data(self, **kwargs):
91-
context = super().get_context_data(**kwargs)
90+
def get_context_data(self, *, object_list=None, **kwargs):
91+
context = super().get_context_data(object_list=object_list, **kwargs)
9292

9393
active_builds = self.get_queryset().exclude(
9494
state='finished',

readthedocs/projects/views/private.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ def get(self, request, *args, **kwargs):
115115
self.validate_primary_email(request.user)
116116
return super(ProjectDashboard, self).get(self, request, *args, **kwargs)
117117

118-
def get_context_data(self, **kwargs):
119-
context = super().get_context_data(**kwargs)
118+
def get_context_data(self, *, object_list=None, **kwargs):
119+
context = super().get_context_data(object_list=object_list, **kwargs)
120120

121121
return context
122122

readthedocs/projects/views/public.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def get_queryset(self):
5858

5959
return queryset
6060

61-
def get_context_data(self, **kwargs):
62-
context = super().get_context_data(**kwargs)
61+
def get_context_data(self, *, object_list=None, **kwargs):
62+
context = super().get_context_data(object_list=object_list, **kwargs)
6363
context['tag'] = self.tag
6464
return context
6565

0 commit comments

Comments
 (0)