mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-29 11:59:36 +00:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user