line.filepath.track.language,
line.filepath.track.instru and 'instru' or '',
line.filepath.track.cfwb and 'cfwb' or '',
- line.filepath.added_to_nonstop_timestamp.strftime('%Y-%m-%d %H:%M') if line.filepath.added_to_nonstop_timestamp else '',
+ line.filepath.track.added_to_nonstop_timestamp.strftime('%Y-%m-%d %H:%M') if line.filepath.added_to_nonstop_timestamp else '',
])
else:
writer.writerow([line.play_timestamp.strftime('%Y-%m-%d %H:%M'),
' + '.join([x.title.encode('utf-8') for x in track.nonstop_zones.all()]),
track.language or '',
track.instru and 'instru' or '',
- track.cfwb and 'cfwb' or ''])
+ track.cfwb and 'cfwb' or '',
+ track.added_to_nonstop_timestamp.strftime('%Y-%m-%d %H:%M') if track.added_to_nonstop_timestamp else '',
+ ])
return HttpResponse(out.getvalue(), content_type='text/csv; charset=utf-8')