Fix doc comments for devel version

Don't say version 0.0 in the emails that are sent out. That's what we
call it internally, but the URL should have /devel/ in it. Fix this both
in the template, and then if it comes through in the form again in case
the user picked up a link elsewhere that is incorrect.
This commit is contained in:
Magnus Hagander
2018-01-06 17:49:30 +01:00
parent 5d6e902dd9
commit e1cda9861d
2 changed files with 4 additions and 1 deletions

View File

@ -132,6 +132,9 @@ def commentform(request, itemid, version, filename):
if request.method == 'POST':
form = DocCommentForm(request.POST)
if form.is_valid():
if version == '0.0':
version = 'devel'
send_template_mail(
settings.DOCSREPORT_NOREPLY_EMAIL,
settings.DOCSREPORT_EMAIL,