Skip to content

Commit

Permalink
fix(api): fix KeyError in _filter_queryset_by_parents_lookups (#24693)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajmajerik authored Sep 3, 2024
1 parent 623df91 commit 1bc6264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ee/api/feature_flag_role_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class FeatureFlagRoleAccessViewSet(
permission_classes = [FeatureFlagRoleAccessPermissions]
serializer_class = FeatureFlagRoleAccessSerializer
queryset = FeatureFlagRoleAccess.objects.select_related("feature_flag")
filter_rewrite_rules = {"team_id": "feature_flag__team_id"}
filter_rewrite_rules = {"project_id": "feature_flag__team__project_id"}

def safely_get_queryset(self, queryset):
filters = self.request.GET.dict()
Expand Down

0 comments on commit 1bc6264

Please sign in to comment.