Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix projects in feed #430

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion feed/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ def _get_filter_data(self) -> list[str]:

def _get_excluded_projects_ids(self) -> list[int]:
"""IDs for exclude projects which in Partner Program."""
excluded_projects = PartnerProgramUserProfile.objects.values_list("project_id", flat=True)
excluded_projects = (
PartnerProgramUserProfile.objects
.values_list("project_id", flat=True)
.exclude(project_id__isnull=True)
)
return excluded_projects

def get_queryset(self) -> QuerySet[News]:
Expand Down
Loading