{"action":"created","issue":{"url":"https://api.github.com/repos/epantry/django-sql-explorer/issues/164","labels_url":"https://api.github.com/repos/epantry/django-sql-explorer/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/epantry/django-sql-explorer/issues/164/comments","events_url":"https://api.github.com/repos/epantry/django-sql-explorer/issues/164/events","html_url":"https://github.com/epantry/django-sql-explorer/pull/164","id":125107802,"number":164,"title":"Add unsaved changes message","user":{"login":"grantmcconnaughey","id":4023140,"avatar_url":"https://avatars.githubusercontent.com/u/4023140?v=3","gravatar_id":"","url":"https://api.github.com/users/grantmcconnaughey","html_url":"https://github.com/grantmcconnaughey","followers_url":"https://api.github.com/users/grantmcconnaughey/followers","following_url":"https://api.github.com/users/grantmcconnaughey/following{/other_user}","gists_url":"https://api.github.com/users/grantmcconnaughey/gists{/gist_id}","starred_url":"https://api.github.com/users/grantmcconnaughey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantmcconnaughey/subscriptions","organizations_url":"https://api.github.com/users/grantmcconnaughey/orgs","repos_url":"https://api.github.com/users/grantmcconnaughey/repos","events_url":"https://api.github.com/users/grantmcconnaughey/events{/privacy}","received_events_url":"https://api.github.com/users/grantmcconnaughey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T04:32:53Z","updated_at":"2016-01-18T02:07:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/epantry/django-sql-explorer/pulls/164","html_url":"https://github.com/epantry/django-sql-explorer/pull/164","diff_url":"https://github.com/epantry/django-sql-explorer/pull/164.diff","patch_url":"https://github.com/epantry/django-sql-explorer/pull/164.patch"},"body":"Fixes #45 \r\n\r\nA \"You have unsaved changes\" message pops up if the user has changed the SQL. It only pops up if they try to go to another page but not if they click the \"Save and Run\" button. Also, it doesn't pop up when you change the SQL on a playground and then go to another page. I figured the playground isn't usually for saving queries anyway, so why annoy the user?\r\n\r\nHere's what it looks like:\r\n\r\n<img width=\"1158\" alt=\"screenshot 2016-01-05 22 28 06\" src=\"https://cloud.githubusercontent.com/assets/4023140/12135086/29ce1aba-b3fc-11e5-928a-aaf008c6afef.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/epantry/django-sql-explorer/issues/comments/172407883","html_url":"https://github.com/epantry/django-sql-explorer/pull/164#issuecomment-172407883","issue_url":"https://api.github.com/repos/epantry/django-sql-explorer/issues/164","id":172407883,"user":{"login":"chrisclark","id":693700,"avatar_url":"https://avatars.githubusercontent.com/u/693700?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisclark","html_url":"https://github.com/chrisclark","followers_url":"https://api.github.com/users/chrisclark/followers","following_url":"https://api.github.com/users/chrisclark/following{/other_user}","gists_url":"https://api.github.com/users/chrisclark/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisclark/subscriptions","organizations_url":"https://api.github.com/users/chrisclark/orgs","repos_url":"https://api.github.com/users/chrisclark/repos","events_url":"https://api.github.com/users/chrisclark/events{/privacy}","received_events_url":"https://api.github.com/users/chrisclark/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T02:07:50Z","updated_at":"2016-01-18T02:07:50Z","body":"Terrific -- thanks for this Grant. Simple and effective!\r\n\r\nNext up -- issue #94!"}}