Skip to content

Commit a381d45

Browse files
author
root
committed
2 parents ac6af5a + 6dd57e0 commit a381d45

File tree

8 files changed

+10
-12
lines changed

8 files changed

+10
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Deploy to Docker Cloud. (<b>Login first to Docker Cloud before clicking the inst
3131

3232
# Installation Options
3333

34-
### [Debian or RHEL-based Install Script](http://defectdojo.readthedocs.io/en/latest/getting-started.html#install-script)
34+
### [Debian, Ubuntu (16.04.2+) or RHEL-based Install Script](http://defectdojo.readthedocs.io/en/latest/getting-started.html#install-script)
3535

3636
### [Docker](http://defectdojo.readthedocs.io/en/latest/getting-started.html#docker-local-install) - There are currently a number of bugs in the Docker image that we're working to address. Please use the regular install script to avoid issues.
3737

dojo/reports/widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def __init__(self, *args, **kwargs):
287287

288288
def get_asciidoc(self):
289289
asciidoc = render_to_string("dojo/custom_asciidoc_report_findings.html",
290-
{"findings": self.findings,
290+
{"findings": self.findings.qs,
291291
"host": self.host,
292292
"include_finding_notes": self.finding_notes,
293293
"include_finding_images": self.finding_images,
@@ -297,7 +297,7 @@ def get_asciidoc(self):
297297
def get_html(self):
298298
html = render_to_string("dojo/custom_pdf_report_finding_list.html",
299299
{"title": self.title,
300-
"findings": self.findings,
300+
"findings": self.findings.qs,
301301
"include_finding_notes": self.finding_notes,
302302
"include_finding_images": self.finding_images,
303303
"host": self.host,
@@ -357,7 +357,7 @@ def __init__(self, *args, **kwargs):
357357
def get_html(self):
358358
html = render_to_string("dojo/custom_pdf_report_endpoint_list.html",
359359
{"title": self.title,
360-
"endpoints": self.endpoints,
360+
"endpoints": self.endpoints.qs,
361361
"include_finding_notes": self.finding_notes,
362362
"include_finding_images": self.finding_images,
363363
"host": self.host,
@@ -366,7 +366,7 @@ def get_html(self):
366366

367367
def get_asciidoc(self):
368368
asciidoc = render_to_string("dojo/custom_asciidoc_report_endpoints.html",
369-
{"endpoints": self.endpoints,
369+
{"endpoints": self.endpoints.qs,
370370
"host": self.host,
371371
"include_finding_notes": self.finding_notes,
372372
"include_finding_images": self.finding_images,

dojo/static/dojo/css/dojo.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ hr.report-page-break:before {
11081108

11091109
.editor {
11101110
overflow: scroll;
1111-
max-height: 250px
1111+
min-height: 250px;
11121112
}
11131113

11141114
.in-use-widgets .report-filter-set .btn-sm {

dojo/tasks.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,9 @@ def async_custom_pdf_report(self,
124124
toc_settings = selected_widgets['table-of-contents']
125125

126126
toc_depth = toc_settings.depth
127-
128127
toc_bytes = render_to_string(xsl_style_sheet_tempalte, {'widgets': widgets,
129128
'depth': toc_depth,
130129
'title': toc_settings.title})
131-
132130
temp.write(toc_bytes)
133131
temp.seek(0)
134132

@@ -143,12 +141,10 @@ def async_custom_pdf_report(self,
143141
'info': cp.meta_info})
144142
cover = host + reverse(
145143
'report_cover_page') + "?" + x
146-
147144
bytes = render_to_string(template, {'widgets': widgets,
148145
'toc_depth': toc_depth,
149146
'host': host,
150147
'report_name': report.name})
151-
152148
pdf = pdfkit.from_string(bytes,
153149
False,
154150
configuration=config,

dojo/templates/dojo/custom_pdf_report.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta charset="UTF-8">
66
<meta name="pdfkit-page-size" content="Letter"/>
77
<meta name="pdfkit-orientation" content="Portrait"/>
8+
<meta name="pdfkit-dpi" content="400"/>
89
<meta name="pdfkit-viewport-size" content="1440x1024"/>
910
<meta name="pdfkit-header-left" content="Custom PDF Report"/>
1011
<meta name="pdfkit-header-right" content="[page]/[toPage]"/>

dojo/templates/dojo/custom_pdf_report_finding_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ <h5>
6969
</a>
7070
</td>
7171
{% endif %}
72-
<td>{{{ finding.id }}</td>
72+
<td>{{ finding.id }}</td>
7373
</tr>
7474
</table>
7575
</div>

dojo/templates/report_base.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<meta charset="UTF-8">
66
<meta name="pdfkit-page-size" content="Letter"/>
77
<meta name="pdfkit-orientation" content="Portrait"/>
8+
<meta name="pdfkit-dpi" content="400"/>
89
<meta name="pdfkit-viewport-size" content="1440x1024"/>
910
<meta name="pdfkit-header-left" content="{{ report_name }}"/>
1011
<meta name="pdfkit-header-right" content="[page]/[toPage]"/>

dojo/test/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def delete_test(request, tid):
114114
eng = test.engagement
115115
form = DeleteTestForm(instance=test)
116116

117-
from django.contrib.admin.util import NestedObjects
117+
from django.contrib.admin.utils import NestedObjects
118118
from django.db import DEFAULT_DB_ALIAS
119119

120120
collector = NestedObjects(using=DEFAULT_DB_ALIAS)

0 commit comments

Comments
 (0)