Closed
Description
The query for affected and fixed packages should be abstracted as methods on the models (and/or on a model manager)
Originally posted by @pombredanne in #525 (comment)
Currently we query for affected and fixed packages as: https://github.com/nexB/vulnerablecode/blob/67fc00e5a8dbdf690f1c1b0d627da0d06322adb9/vulnerabilities/views.py#L81-L87
This needs to be abstracted as model methods.
Related: