We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 905f908 + 12431a6 commit 153a44aCopy full SHA for 153a44a
1 file changed
feed/views.py
@@ -29,7 +29,11 @@ def _get_filter_data(self) -> list[str]:
29
30
def _get_excluded_projects_ids(self) -> list[int]:
31
"""IDs for exclude projects which in Partner Program."""
32
- excluded_projects = PartnerProgramUserProfile.objects.values_list("project_id", flat=True)
+ excluded_projects = (
33
+ PartnerProgramUserProfile.objects
34
+ .values_list("project_id", flat=True)
35
+ .exclude(project_id__isnull=True)
36
+ )
37
return excluded_projects
38
39
def get_queryset(self) -> QuerySet[News]:
0 commit comments