We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 300b54a commit 4dbe4bbCopy full SHA for 4dbe4bb
src/country_workspace/workspaces/forms.py
@@ -76,7 +76,7 @@ def get_available_programs(office: Office, user: User) -> QuerySet[Program]:
76
# if there is only one role with program_id == None, user can access all programs,
77
# otherwise we allow access to programs assigned to roles
78
if roles_count > 1 or roles[0].program_id:
79
- program_ids: Iterable[int] = filter(None, map(attrgetter("program_id"), roles))
+ program_ids: "Iterable[int]" = filter(None, map(attrgetter("program_id"), roles))
80
program_qs = program_qs.filter(id__in=program_ids)
81
else:
82
program_qs = Program.objects.none()
0 commit comments