From 479bdd36a3a2a118091b1f5faafd1adab1d3954d Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 8 Jan 2017 09:43:20 +1100 Subject: [PATCH] s/InvoiceNagForm/InvoiceEmailForm/ --- registrasion/forms.py | 2 +- registrasion/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/registrasion/forms.py b/registrasion/forms.py index ecb889fa..1874e448 100644 --- a/registrasion/forms.py +++ b/registrasion/forms.py @@ -413,7 +413,7 @@ def staff_products_formset_factory(user): return forms.formset_factory(form_type) -class InvoiceNagForm(forms.Form): +class InvoiceEmailForm(forms.Form): ACTION_PREVIEW = 1 ACTION_SEND = 2 diff --git a/registrasion/views.py b/registrasion/views.py index b3aae73d..e30472db 100644 --- a/registrasion/views.py +++ b/registrasion/views.py @@ -932,7 +932,7 @@ def nag_unpaid(request): category = request.GET.getlist("category", []) product = request.GET.getlist("product", []) - form = forms.InvoiceNagForm( + form = forms.InvoiceEmailForm( request.POST or None, category=category, product=product, @@ -954,7 +954,7 @@ def nag_unpaid(request): recipient_list = [invoice.user.email] emails.append(Email(subject, body, from_email, recipient_list)) - if form.cleaned_data["action"] == forms.InvoiceNagForm.ACTION_SEND: + if form.cleaned_data["action"] == forms.InvoiceEmailForm.ACTION_SEND: # Send e-mails *ONLY* if we're sending. send_mass_mail(emails) messages.info(request, "The e-mails have been sent.")