File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,9 @@ class ClosedFindingFilter(FilterSet):
310310 test__engagement__product = ModelMultipleChoiceFilter (
311311 queryset = Product .objects .all (),
312312 label = "Product" )
313+ test__engagement__product__prod_type = ModelMultipleChoiceFilter (
314+ queryset = Product_Type .objects .all (),
315+ label = "Product Type" )
313316
314317 class Meta :
315318 model = Finding
@@ -358,6 +361,9 @@ class AcceptedFindingFilter(FilterSet):
358361 test__engagement__product = ModelMultipleChoiceFilter (
359362 queryset = Product .objects .all (),
360363 label = "Product" )
364+ test__engagement__product__prod_type = ModelMultipleChoiceFilter (
365+ queryset = Product_Type .objects .all (),
366+ label = "Product Type" )
361367
362368 class Meta :
363369 model = Finding
Original file line number Diff line number Diff line change 1111 < th > Name</ th >
1212 < th > Date</ th >
1313 < th > Accepted On</ th >
14+ < th > Age</ th >
1415 < th > Severity</ th >
1516 < th > Product</ th >
1617 </ tr >
2324 </ td >
2425 < td class ="nowrap "> {{ finding.date }}</ td >
2526 < td class =""> {{ finding.risk_acceptance_set.all.0.created.date }}</ td >
27+ < td > {{ finding.age }}</ td >
2628 < td > {% if finding.severity == "Critical" or finding.severity == "High" %}
2729 < p class ="text-error ">
2830 {% else %}< p > {% endif %}{{ finding.severity }}</ p > </ td >
Original file line number Diff line number Diff line change 1111 < th > Name</ th >
1212 < th > Date</ th >
1313 < th > Mitigated On</ th >
14+ < th > Age</ th >
1415 < th > Severity</ th >
1516 < th > Product</ th >
1617 </ tr >
2324 </ td >
2425 < td class ="nowrap "> {{ finding.date }}</ td >
2526 < td class =""> {{ finding.mitigated.date }}</ td >
27+ < td > {{ finding.age }}</ td >
2628 < td > {% if finding.severity == "Critical" or finding.severity == "High" %}
2729 < p class ="text-error ">
2830 {% else %}< p > {% endif %}{{ finding.severity }}</ p > </ td >
You can’t perform that action at this time.
0 commit comments