Don't use hardcoded pgsql-hackers name in status message
authorAndreas Scherbaum <ads@pgug.de>
Fri, 16 Nov 2018 13:20:03 +0000 (14:20 +0100)
committerMagnus Hagander <magnus@hagander.net>
Fri, 16 Nov 2018 13:20:03 +0000 (14:20 +0100)
Instead use the value from the settings file, which is what's actually
used to send.

pgcommitfest/commitfest/views.py

index 54d4180be21e1ecf307be78ea69cadb4278616fa..47c38489bb655488b22e94d867e58dee26d61dbe 100644 (file)
@@ -442,7 +442,7 @@ def comment(request, cfid, patchid, what):
 
                        PatchHistory(patch=patch, by=request.user, what='Posted %s with messageid %s' % (what, msg['Message-ID'])).save()
 
-                       messages.add_message(request, messages.INFO, "Your email has been queued for pgsql-hackers, and will be sent within a few minutes.")
+                       messages.add_message(request, messages.INFO, "Your email has been queued for %s, and will be sent within a few minutes." % (settings.HACKERS_EMAIL))
 
                        return HttpResponseRedirect('/%s/%s/' % (cf.id, patch.id))
        else: