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

Method get_context_data

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

Source from the content-addressed store, hash-verified

205 paginate_by = PAGE_SIZE
206
207 def get_context_data(self, **kwargs):
208 context = super().get_context_data(**kwargs)
209 request_query = self.request.GET
210 context["package_search_form"] = PackageSearchForm(request_query)
211 context["search"] = request_query.get("search")
212 return context
213
214 def get_queryset(self, query=None):
215 """

Callers

nothing calls this directly

Calls 3

PackageSearchFormClass · 0.90
get_context_dataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected