MCPcopy Index your code
hub / github.com/aboutcode-org/vulnerablecode / get_context_data

Method get_context_data

vulnerabilities/views.py:120–125  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

118 paginate_by = PAGE_SIZE
119
120 def get_context_data(self, **kwargs):
121 context = super().get_context_data(**kwargs)
122 request_query = self.request.GET
123 context["package_search_form"] = PackageSearchForm(request_query)
124 context["search"] = request_query.get("search")
125 return context
126
127 def get_queryset(self, query=None):
128 """

Callers 14

get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45
get_context_dataMethod · 0.45

Calls 2

PackageSearchFormClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected