Skip to content

Commit

Permalink
Support CSV download at the XLSForm download endpoint
Browse files Browse the repository at this point in the history
Form builder publishes a CSV file
  • Loading branch information
ukanga committed Jun 21, 2018
1 parent 62d752e commit 4abd30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onadata/apps/api/viewsets/xform_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def create_async(self, request, *args, **kwargs):
@never_cache
def form(self, request, format='json', **kwargs):
form = self.get_object()
if format not in ['json', 'xml', 'xls']:
if format not in ['json', 'xml', 'xls', 'csv']:
return HttpResponseBadRequest('400 BAD REQUEST',
content_type='application/json',
status=400)
Expand Down

0 comments on commit 4abd30d

Please sign in to comment.