Commit Graph

7 Commits

Author SHA1 Message Date
fd37389a3b Replace NavContext and render_to_response with render_pgweb
render_to_response does not work on newer django, so it needs to be
replaced. And using a speicfic context actually overcomplicates things,
it's easier to just use a wrapper function. For those cases where we
don't need NavContext, just use render() (the new shortcut function from
django), which also removes the need to use RequestContext.
2018-03-10 10:38:11 -05:00
52230d3731 Fix ordering of CVE entries 2018-02-08 15:27:25 +01:00
283d1f710c Don't list unsupported versions that have no patches at all
That just generates a completely empty page in the output, so remove the
link completely instead.

For supported versions we list all of them, including if they have no
patches.
2018-01-26 11:28:53 +01:00
9dcecdff67 Remove dead code 2018-01-26 11:18:39 +01:00
89f7171bfd Fix query for version-specific security support list
When asking for version x, we should still list all versions the patch
in question applies to, not limit it to the current one.
2018-01-26 11:18:02 +01:00
e896caf1d4 Small refectoring
Makes the code easier to use in future feed support
2018-01-26 11:12:04 +01:00
0cb56d9355 Database:ify the list of security patches
This finally moves the patches into the db, which makes it a lot easier
to filter patches in the views.

It also adds the new way of categorising patches, which is assigning
them a CVSSv3 score.

For now, there are no public views to this, and the old static pages
remain. This is so we can backfill all existing security patches before
we make it public.
2018-01-25 21:59:13 +01:00