From 94a5f10918aeed8b0456edcdf26bf201c3b9e19d Mon Sep 17 00:00:00 2001 From: ziad hany Date: Mon, 1 Jun 2026 13:43:47 +0300 Subject: [PATCH 1/3] Add API support for PackageCommitPatch Add a test Signed-off-by: ziad hany --- .../templates/advisory_detail.html | 46 +++++++++++- .../advisory_package_commit_details.html | 75 +++++++++++++++++++ vulnerabilities/views.py | 52 +++++++++++++ 3 files changed, 171 insertions(+), 2 deletions(-) create mode 100644 vulnerabilities/templates/advisory_package_commit_details.html diff --git a/vulnerabilities/templates/advisory_detail.html b/vulnerabilities/templates/advisory_detail.html index 0b850c006..fea5afde4 100644 --- a/vulnerabilities/templates/advisory_detail.html +++ b/vulnerabilities/templates/advisory_detail.html @@ -80,7 +80,16 @@ {% endif %} - + +
  • + + + {% with pcp_length=package_commit_patches|length %} + Patches: ({{ advisory.patches.count|add:pcp_length }}) + {% endwith %} + + +