diff --git a/readthedocs/builds/views.py b/readthedocs/builds/views.py index 87f097638dd..1cf0244113b 100644 --- a/readthedocs/builds/views.py +++ b/readthedocs/builds/views.py @@ -42,6 +42,7 @@ def get_context_data(self, **kwargs): context['filter'] = filter context['active_builds'] = active_builds context['versions'] = Version.objects.public(user=self.request.user, project=self.project) + context['build_qs'] = filter.qs try: redis = Redis.from_url(settings.BROKER_URL) diff --git a/readthedocs/templates/builds/build_list.html b/readthedocs/templates/builds/build_list.html index 96c990d3acd..9c1173fb9dd 100644 --- a/readthedocs/templates/builds/build_list.html +++ b/readthedocs/templates/builds/build_list.html @@ -45,7 +45,7 @@

- {% autopaginate filter.qs 15 %} + {% autopaginate build_qs 15 %}
diff --git a/readthedocs/templates/core/build_list_detailed.html b/readthedocs/templates/core/build_list_detailed.html index fd1c692d99c..33b3b754a7a 100644 --- a/readthedocs/templates/core/build_list_detailed.html +++ b/readthedocs/templates/core/build_list_detailed.html @@ -1,7 +1,7 @@ {% load i18n %} {% load static %} - {% for build in filter.qs %} + {% for build in build_qs %}