Renames “nag_unpaid” to “invoice_mailout”, better matches current intent.
This commit is contained in:
		
							parent
							
								
									de902a213d
								
							
						
					
					
						commit
						274187b8bf
					
				
					 4 changed files with 10 additions and 8 deletions
				
			
		|  | @ -448,6 +448,7 @@ class InvoiceEmailForm(forms.Form): | ||||||
|         product = [int(i) for i in product] |         product = [int(i) for i in product] | ||||||
| 
 | 
 | ||||||
|         super(InvoiceEmailForm, self).__init__(*a, **k) |         super(InvoiceEmailForm, self).__init__(*a, **k) | ||||||
|  |         print status | ||||||
| 
 | 
 | ||||||
|         qs = commerce.Invoice.objects.filter( |         qs = commerce.Invoice.objects.filter( | ||||||
|             status=status or commerce.Invoice.STATUS_UNPAID, |             status=status or commerce.Invoice.STATUS_UNPAID, | ||||||
|  |  | ||||||
|  | @ -593,10 +593,11 @@ def attendee_data(request, form, user_id=None): | ||||||
| 
 | 
 | ||||||
|     # Add invoice nag link |     # Add invoice nag link | ||||||
|     links = [] |     links = [] | ||||||
|     links.append(( |     invoice_mailout = reverse(views.invoice_mailout, args=[]) + "?" + request.META["QUERY_STRING"] | ||||||
|         reverse(views.nag_unpaid, args=[]) + "?" + request.META["QUERY_STRING"], |     links += [ | ||||||
|         "Send invoice reminders", |         (invoice_mailout + "&status=1", "Send invoice reminders",), | ||||||
|     )) |         (invoice_mailout + "&status=2", "Send mail for paid invoices",), | ||||||
|  |     ] | ||||||
| 
 | 
 | ||||||
|     if items.count() > 0: |     if items.count() > 0: | ||||||
|         output.append(Links("Actions", links)) |         output.append(Links("Actions", links)) | ||||||
|  |  | ||||||
|  | @ -12,8 +12,8 @@ from .views import ( | ||||||
|     guided_registration, |     guided_registration, | ||||||
|     invoice, |     invoice, | ||||||
|     invoice_access, |     invoice_access, | ||||||
|  |     invoice_mailout, | ||||||
|     manual_payment, |     manual_payment, | ||||||
|     nag_unpaid, |  | ||||||
|     product_category, |     product_category, | ||||||
|     refund, |     refund, | ||||||
|     review, |     review, | ||||||
|  | @ -35,7 +35,7 @@ public = [ | ||||||
|         refund, name="refund"), |         refund, name="refund"), | ||||||
|     url(r"^invoice_access/([A-Z0-9]+)$", invoice_access, |     url(r"^invoice_access/([A-Z0-9]+)$", invoice_access, | ||||||
|         name="invoice_access"), |         name="invoice_access"), | ||||||
|     url(r"^nag_unpaid$", nag_unpaid, name="nag_unpaid"), |     url(r"^invoice_mailout$", invoice_mailout, name="invoice_mailout"), | ||||||
|     url(r"^profile$", edit_profile, name="attendee_edit"), |     url(r"^profile$", edit_profile, name="attendee_edit"), | ||||||
|     url(r"^register$", guided_registration, name="guided_registration"), |     url(r"^register$", guided_registration, name="guided_registration"), | ||||||
|     url(r"^review$", review, name="review"), |     url(r"^review$", review, name="review"), | ||||||
|  |  | ||||||
|  | @ -926,8 +926,8 @@ Email = namedtuple( | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| @user_passes_test(_staff_only) | @user_passes_test(_staff_only) | ||||||
| def nag_unpaid(request): | def invoice_mailout(request): | ||||||
|     ''' Allows staff to nag users with unpaid invoices. ''' |     ''' Allows staff to send emails to users based on their invoice status. ''' | ||||||
| 
 | 
 | ||||||
|     category = request.GET.getlist("category", []) |     category = request.GET.getlist("category", []) | ||||||
|     product  = request.GET.getlist("product", []) |     product  = request.GET.getlist("product", []) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer