writehat
writehat copied to clipboard
Export customer data to excel sheet
Hi, I would like to include some customer data automatically in the excel sheet. I am a novice at django so I apologize if this a stupid issue. When trying to export customer data like this:
from writehat.lib.customer import Customer
.
.
.
cell.value = str(Customer.name)
the value in the excel sheet is: <django.db.models.query_utils.DeferredAttribute object at 0x7f41af636c70>
How do I access the data from the customer from the engagement ?
Any help would be greatly appreciated, thank you :)