From: Magnus Hagander Date: Wed, 6 Nov 2024 14:53:08 +0000 (+0100) Subject: Include invoice num in log of invoice created/canceled for regs X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=45362d57faa5f097b2902756ca59a29183813fbd;p=pgeu-system.git Include invoice num in log of invoice created/canceled for regs --- diff --git a/postgresqleu/confreg/invoicehandler.py b/postgresqleu/confreg/invoicehandler.py index 6abe81ab..6b6ad325 100644 --- a/postgresqleu/confreg/invoicehandler.py +++ b/postgresqleu/confreg/invoicehandler.py @@ -54,7 +54,7 @@ class InvoiceProcessor(object): # Unlink this invoice from the registration. This will automatically # "unlock" the registration reg.invoice = None - reglog(reg, "Invoice canceled, unlinking from reg") + reglog(reg, "Invoice #{} canceled, unlinking from reg".format(invoice.id)) # If this registration holds any additional options that are about to expire, release # them for others to use at this point. diff --git a/postgresqleu/confreg/views.py b/postgresqleu/confreg/views.py index 106df057..5d1c629c 100644 --- a/postgresqleu/confreg/views.py +++ b/postgresqleu/confreg/views.py @@ -2292,7 +2292,7 @@ def confirmreg(request, confname): reg.invoice.save() reg.save() - reglog(reg, "Confirmed reg details, invoice created", request.user) + reglog(reg, "Confirmed reg details, invoice #{} created".format(reg.invoice.id), request.user) return HttpResponseRedirect("../invoice/%s/" % reg.pk) # Else this is some random button we haven't heard of, so just