MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / get_project

Method get_project

api/segments/views.py:91–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 pagination_class = CustomPagination
90
91 def get_project(self) -> Project:
92 user: "FFAdminUser" = self.request.user # type: ignore[assignment]
93 projects = user.get_permitted_projects(permission_key=VIEW_PROJECT)
94 return get_object_or_404(projects, pk=self.kwargs["project_pk"])
95
96 def get_queryset(self): # type: ignore[no-untyped-def]
97 if getattr(self, "swagger_fake_view", False):

Callers 2

get_querysetMethod · 0.95
membersMethod · 0.95

Calls 1

Tested by

no test coverage detected