Skip to content

Commit 153a44a

Browse files
authored
Merge pull request #431 from PROCOLLAB-github/dev
Dev
2 parents 905f908 + 12431a6 commit 153a44a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

feed/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ def _get_filter_data(self) -> list[str]:
2929

3030
def _get_excluded_projects_ids(self) -> list[int]:
3131
"""IDs for exclude projects which in Partner Program."""
32-
excluded_projects = PartnerProgramUserProfile.objects.values_list("project_id", flat=True)
32+
excluded_projects = (
33+
PartnerProgramUserProfile.objects
34+
.values_list("project_id", flat=True)
35+
.exclude(project_id__isnull=True)
36+
)
3337
return excluded_projects
3438

3539
def get_queryset(self) -> QuerySet[News]:

0 commit comments

Comments
 (0)