Skip to content

Commit c5ac7f7

Browse files
committed
Remove overriding of object_list in ListView
I don’t quite know why this was here, but it definitely broke and this fixes it.
1 parent 63ca0f9 commit c5ac7f7

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

readthedocs/builds/views.py

+2-2
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, *, object_list=None, **kwargs):
91-
context = super().get_context_data(object_list=object_list, **kwargs)
90+
def get_context_data(self, *args, **kwargs):
91+
context = super().get_context_data(*args, **kwargs)
9292

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

readthedocs/projects/views/private.py

-5
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ 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, *, object_list=None, **kwargs):
119-
context = super().get_context_data(object_list=object_list, **kwargs)
120-
121-
return context
122-
123118

124119
class ProjectMixin(PrivateViewMixin):
125120

readthedocs/projects/views/public.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def get_queryset(self):
6060

6161
return queryset
6262

63-
def get_context_data(self, *, object_list=None, **kwargs):
64-
context = super().get_context_data(object_list=object_list, **kwargs)
63+
def get_context_data(self, *args, **kwargs):
64+
context = super().get_context_data(*args, **kwargs)
6565
context['tag'] = self.tag
6666
return context
6767

0 commit comments

Comments
 (0)