Shows an email address.

This commit is contained in:
Christopher Neugebauer 2016-09-20 18:44:23 +10:00
parent 2d469bb398
commit 7c5c155370

View file

@ -581,13 +581,14 @@ def attendee_data(request, form, user_id=None):
AttendeeProfile._meta.get_field(field).verbose_name for field in fields AttendeeProfile._meta.get_field(field).verbose_name for field in fields
] ]
headings = ["User ID", "Name", "Product", "Item Status"] + field_names headings = ["User ID", "Name", "Email", "Product", "Item Status"] + field_names
data = [] data = []
for item in items: for item in items:
profile = by_user[item.cart.user] profile = by_user[item.cart.user]
line = [ line = [
item.cart.user.id, item.cart.user.id,
getattr(profile, name_field), getattr(profile, name_field),
profile.attendee.user.email,
item.product, item.product,
status_display[item.cart.status], status_display[item.cart.status],
] + [ ] + [