Skip to content

Commit dd01407

Browse files
committed
Merge branch 'master' of http://github.com/chfw/django-excel
2 parents 65baca7 + 234a3d7 commit dd01407

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

polls/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def export_data(request, atype):
6262
query_sets,
6363
column_names,
6464
'xls')
65-
65+
else:
66+
return HttpResponseBadRequest("Bad request. please put one of these \
67+
in your url suffix: sheet, book or custom")
6668

6769
def import_data(request):
6870
if request.method == "POST":

0 commit comments

Comments
 (0)