Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
World
OpenPaperwork
openpaper.work
Commits
fb658bee
Commit
fb658bee
authored
Dec 26, 2021
by
Jerome Flesch
Browse files
Scanner DB: fix admin comment posting
parent
96105cc6
Pipeline
#345429
passed with stages
in 10 minutes and 33 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
scannerdb/views.py
View file @
fb658bee
...
...
@@ -394,7 +394,7 @@ def comment_report(request, report_id):
except
(
backend
.
models
.
scannerdb
.
ScanReport
.
DoesNotExist
,
ValueError
):
raise
django
.
http
.
Http404
(
'Report {} not found'
.
format
(
report_id
))
form
=
forms
.
ReportRejection
Form
(
request
.
POST
)
form
=
forms
.
AdminComment
Form
(
request
.
POST
)
if
not
form
.
is_valid
():
return
django
.
http
.
HttpResponseForbidden
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment