Created
May 7, 2019 11:46
-
-
Save akshar-raaj/01183e1db4eb02e551b130016a9918ad to your computer and use it in GitHub Desktop.
Delete handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| elif request.method == 'DELETE': | |
| question.delete() | |
| return Response("Question deleted", status=status.HTTP_204_NO_CONTENT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment