We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fd28e09 + 819071c commit 3304193Copy full SHA for 3304193
readthedocs/projects/views/public.py
@@ -44,6 +44,7 @@ class ProjectIndex(ListView):
44
45
def get_queryset(self):
46
queryset = Project.objects.public(self.request.user)
47
+ queryset = queryset.exclude(users__profile__banned=True)
48
49
if self.kwargs.get('tag'):
50
self.tag = get_object_or_404(Tag, slug=self.kwargs.get('tag'))
@@ -69,9 +70,6 @@ def get_context_data(self, **kwargs):
69
70
return context
71
72
-project_index = ProjectIndex.as_view()
73
-
74
75
class ProjectDetailView(BuildTriggerMixin, ProjectOnboardMixin, DetailView):
76
77
"""Display project onboard steps."""
0 commit comments