{"action":"created","issue":{"url":"https://api.github.com/repos/codesy/codesy/issues/193","labels_url":"https://api.github.com/repos/codesy/codesy/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/codesy/codesy/issues/193/comments","events_url":"https://api.github.com/repos/codesy/codesy/issues/193/events","html_url":"https://github.com/codesy/codesy/issues/193","id":128272384,"number":193,"title":"Updating bid via widget template is broken","user":{"login":"groovecoder","id":71928,"avatar_url":"https://avatars.githubusercontent.com/u/71928?v=3","gravatar_id":"","url":"https://api.github.com/users/groovecoder","html_url":"https://github.com/groovecoder","followers_url":"https://api.github.com/users/groovecoder/followers","following_url":"https://api.github.com/users/groovecoder/following{/other_user}","gists_url":"https://api.github.com/users/groovecoder/gists{/gist_id}","starred_url":"https://api.github.com/users/groovecoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groovecoder/subscriptions","organizations_url":"https://api.github.com/users/groovecoder/orgs","repos_url":"https://api.github.com/users/groovecoder/repos","events_url":"https://api.github.com/users/groovecoder/events{/privacy}","received_events_url":"https://api.github.com/users/groovecoder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codesy/codesy/labels/bug","name":"bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-22T23:45:18Z","updated_at":"2016-01-25T18:36:04Z","closed_at":null,"body":"Steps to reproduce:\r\n1. Create a bid on an issue via the widget\r\n2. Go to the issue again\r\n3. Change a value\r\n4. Click \"Change your bid\"\r\n\r\nExpected results:\r\nShould update the bid and redirect/refresh the bid template with new value\r\n\r\nActual results:\r\nGet a `405` method not allowed error.\r\n\r\n[DRF 3.3 removes the ability to override the http request method to `PUT`](http://www.django-rest-framework.org/topics/browser-enhancements/#browser-based-put-delete-etc) via an `<input type=\"hidden\" name=\"_method\" value=\"PUT\">` element.\r\n\r\nInstead, we need to use something like [the AJAX form library](https://github.com/tomchristie/ajax-form) that DRF itself uses. It will intercept the regular form submission, and use AJAX to send a `PUT` request to the server."},"comment":{"url":"https://api.github.com/repos/codesy/codesy/issues/comments/174613838","html_url":"https://github.com/codesy/codesy/issues/193#issuecomment-174613838","issue_url":"https://api.github.com/repos/codesy/codesy/issues/193","id":174613838,"user":{"login":"jdungan","id":1707538,"avatar_url":"https://avatars.githubusercontent.com/u/1707538?v=3","gravatar_id":"","url":"https://api.github.com/users/jdungan","html_url":"https://github.com/jdungan","followers_url":"https://api.github.com/users/jdungan/followers","following_url":"https://api.github.com/users/jdungan/following{/other_user}","gists_url":"https://api.github.com/users/jdungan/gists{/gist_id}","starred_url":"https://api.github.com/users/jdungan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdungan/subscriptions","organizations_url":"https://api.github.com/users/jdungan/orgs","repos_url":"https://api.github.com/users/jdungan/repos","events_url":"https://api.github.com/users/jdungan/events{/privacy}","received_events_url":"https://api.github.com/users/jdungan/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T18:36:04Z","updated_at":"2016-01-25T18:36:04Z","body":"The X-CSRFToken did the trick, at least in a quick test.  I'll put it together in a commit later tonight.\r\n\r\nAny reason why you created a second branch for this fix?"}}