Skip to content

Commit f63cb8a

Browse files
committed
Merge branch 'master' of github.com:rackerlabs/django-DefectDojo
2 parents a33441e + a13b787 commit f63cb8a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

dojo/filters.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

dojo/templates/dojo/accepted_findings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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>
@@ -23,6 +24,7 @@
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>

dojo/templates/dojo/closed_findings.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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>
@@ -23,6 +24,7 @@
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>

0 commit comments

Comments
 (0)