mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-18 12:19:29 +00:00
Convert CSV download to CBV, cleaned up base.py
This commit is contained in:
@@ -45,8 +45,8 @@ class CSVResponseMixin(object):
|
||||
w.writerow(headings)
|
||||
|
||||
# Rows
|
||||
for row in self.data:
|
||||
row = [unicode(c).encode(charset, 'replace') for c in row.values()]
|
||||
for row in self.get_csv_data():
|
||||
row = [unicode(c).encode(charset, 'replace') for c in row]
|
||||
w.writerow(row)
|
||||
|
||||
# Done
|
||||
|
||||
Reference in New Issue
Block a user