Changeset - cb50f2a3bea9
[Not reviewed]
0 1 0
Christopher Neugebauer - 8 years ago 2016-09-13 08:53:01
chrisjrn@gmail.com
Replaces a bunch of reports with QuerysetReports
1 file changed with 4 insertions and 16 deletions:
0 comments (0 inline, 0 general)
registrasion/reporting/views.py
Show inline comments
...
 
@@ -227,23 +227,11 @@ def credit_notes(request, form):
 
        "invoice__user__attendee__attendeeprofilebase",
 
    )
 

	
 
    headings = [
 
        "id", "Owner", "Status", "Value",
 
    ]
 

	
 
    data = []
 
    for note in notes:
 
        data.append([
 
            note.id,
 
            note.invoice.user.attendee.attendeeprofilebase.invoice_recipient(),
 
            note.status,
 
            note.value,
 
        ])
 

	
 
    return ListReport(
 
    return QuerysetReport(
 
        "Credit Notes",
 
        headings,
 
        data,
 
        ["id", "invoice__user__attendee__attendeeprofilebase__invoice_recipient", "status", "value"],  # NOQA
 
        notes,
 
        headings=["id", "Owner", "Status", "Value"],
 
        link_view=views.credit_note,
 
    )
 

	
0 comments (0 inline, 0 general)