writehat icon indicating copy to clipboard operation
writehat copied to clipboard

Export customer data to excel sheet

Open Wherekonshade opened this issue 3 years ago • 0 comments

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 :)

Wherekonshade avatar Jun 24 '21 17:06 Wherekonshade