Skip to content

Commit

Permalink
Merge pull request #9 from KiiCorp/fix-dashboard-deletion
Browse files Browse the repository at this point in the history
Fix response of deletion of dashboards owned by a user.
  • Loading branch information
shinsuke-nara authored Nov 8, 2017
2 parents aa92964 + 5c923b5 commit 6c4758c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions redash/handlers/dashboards.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
from itertools import chain

from flask import make_response, request, url_for
from flask import make_response, request, url_for, Response
from funcy import distinct, project, take

from flask_restful import abort
Expand Down Expand Up @@ -242,4 +243,4 @@ def delete(self, user_id):
except IntegrityError as e:
abort(500)

return make_response('', 204)
return Response(status = 204, content_type = "")

0 comments on commit 6c4758c

Please sign in to comment.