File tree Expand file tree Collapse file tree 3 files changed +22
-9
lines changed Expand file tree Collapse file tree 3 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,11 @@ <h4>=== Finding {{ find.id }}: {{ find.title | nice_title }} {% if find.mitigate
243243 {{ find.impact|linebreaksasciidocbr }}
244244 </ p >
245245 < br >
246- < p > < b > ==== Systems Vulnerable: ====</ b > < br > {{ find.endpoint|linebreaksasciidocbr }}</ p >
246+ < p > < b > ==== Systems Vulnerable: ====</ b > < br >
247+ {% for endpoint in find.endpoints.all %}
248+ {{ endpoint }} +< br />
249+ {% endfor %}
250+ </ p >
247251 < br >
248252 < p > < b > ==== Suggested Mitigation: ====</ b >
249253 < br >
@@ -347,7 +351,11 @@ <h5>==== Finding {{ find.id }}: {{ find.title | nice_title }} {% if find.mitigat
347351 {{ find.impact|linebreaksasciidocbr }}
348352 </ p >
349353 < br >
350- < p > < b > ==== Systems Vulnerable: ====</ b > < br > {{ find.endpoint|linebreaksasciidocbr }}</ p >
354+ < p > < b > ==== Systems Vulnerable: ====</ b > < br >
355+ {% for endpoint in find.endpoints.all %}
356+ {{ endpoint }} +< br />
357+ {% endfor %}
358+ </ p >
351359 < br >
352360 < p > < b > ==== Suggested Mitigation: ====</ b >
353361 < br >
Original file line number Diff line number Diff line change 5353 margin-left : 4em ;
5454 font-style : italic;
5555 }
56+
5657 </ style >
5758</ head >
5859< body >
@@ -353,7 +354,9 @@ <h5 style="-pdf-outline: false;border: 1px solid #d0d0d0;margin-top: 0px;margin-
353354 < h5 style ="-pdf-outline: false;border: 1px solid #d0d0d0;margin-top: 0px;margin-bottom: 0px;padding: 8px 5px 3px 5px;background-color: #98AFC7;margin-left: 10px;margin-right: 10px; ">
354355 Systems Vulnerable:</ h5 >
355356 < p style ="margin: 0px 13px 0px 13px;padding: 10px 10px 5px 10px;background-color: #f0f0f0;border: 1px solid #d0d0d0; ">
356- {{ find.endpoint|linebreaksbr }}
357+ {% for endpoint in find.endpoints.all %}
358+ {{ endpoint }}< br />
359+ {% endfor %}
357360 </ p >
358361 < h5 style ="-pdf-outline: false;border: 1px solid #d0d0d0;margin-top: 0px;margin-bottom: 0px;padding: 8px 5px 3px 5px;background-color: #98AFC7;margin-left: 10px;margin-right: 10px; ">
359362 Suggested Mitigation:</ h5 >
@@ -425,9 +428,11 @@ <h5 style="-pdf-outline: false;border: 1px solid #d0d0d0;margin-top: 0px;margin-
425428 </ p >
426429 < h5 style ="-pdf-outline: false;border: 1px solid #d0d0d0;margin-top: 0px;margin-bottom: 0px;padding: 8px 5px 3px 5px;background-color: #98AFC7;margin-left: 10px;margin-right: 10px; ">
427430 Systems Vulnerable:</ h5 >
428- < p style ="margin: 0px 13px 0px 13px;padding: 10px 10px 5px 10px;background-color: #f0f0f0;border: 1px solid #d0d0d0; ">
429- {{ find.endpoint|linebreaksbr }}
430- </ p >
431+ < div class ="endpoints " style ="margin: 0px 13px 0px 13px;padding: 10px 10px 5px 10px;background-color: #f0f0f0;border: 1px solid #d0d0d0; ">
432+ {% for endpoint in find.endpoints.all %}
433+ {{ endpoint }}< br />
434+ {% endfor %}
435+ </ div >
431436 < h5 style ="-pdf-outline: false;border: 1px solid #d0d0d0;margin-top: 0px;margin-bottom: 0px;padding: 8px 5px 3px 5px;background-color: #98AFC7;margin-left: 10px;margin-right: 10px; ">
432437 Suggested Mitigation:</ h5 >
433438 < p style ="margin: 0px 13px 0px 13px;padding: 10px 10px 5px 10px;background-color: #f0f0f0;border: 1px solid #d0d0d0; ">
Original file line number Diff line number Diff line change @@ -3064,13 +3064,13 @@ def view_engagement(request, eid):
30643064def new_product (request ):
30653065 if request .method == 'POST' :
30663066 form = ProductForm (request .POST )
3067- if ( form .is_valid () ):
3068- form .save ()
3067+ if form .is_valid ():
3068+ product = form .save ()
30693069 messages .add_message (request ,
30703070 messages .SUCCESS ,
30713071 'Product added successfully.' ,
30723072 extra_tags = 'alert-success' )
3073- return HttpResponseRedirect (reverse ('product' ))
3073+ return HttpResponseRedirect (reverse ('view_product' , args = ( product . id ,) ))
30743074 else :
30753075 form = ProductForm ()
30763076 return render (request , 'dojo/new_product.html' ,
You can’t perform that action at this time.
0 commit comments