Add tests for segment users view
This commit is contained in:
@ -149,7 +149,7 @@ def segment_user_data(request, segment_id):
|
|||||||
|
|
||||||
response = HttpResponse(content_type='text/csv; charset=utf-8')
|
response = HttpResponse(content_type='text/csv; charset=utf-8')
|
||||||
response['Content-Disposition'] = \
|
response['Content-Disposition'] = \
|
||||||
'attachment;filename=segment-%s-users.csv' % str(segment_id)
|
'attachment;filename=segment-%s-users.csv' % str(segment_id)
|
||||||
|
|
||||||
headers = ['Username']
|
headers = ['Username']
|
||||||
for rule in segment.get_rules():
|
for rule in segment.get_rules():
|
||||||
|
Reference in New Issue
Block a user