{"action":"created","issue":{"url":"https://api.github.com/repos/jonashagstedt/swampdragon/issues/78","labels_url":"https://api.github.com/repos/jonashagstedt/swampdragon/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/jonashagstedt/swampdragon/issues/78/comments","events_url":"https://api.github.com/repos/jonashagstedt/swampdragon/issues/78/events","html_url":"https://github.com/jonashagstedt/swampdragon/issues/78","id":74343742,"number":78,"title":"SelfPublishModel not always updating","user":{"login":"dumoulinj","id":1744949,"avatar_url":"https://avatars.githubusercontent.com/u/1744949?v=3","gravatar_id":"","url":"https://api.github.com/users/dumoulinj","html_url":"https://github.com/dumoulinj","followers_url":"https://api.github.com/users/dumoulinj/followers","following_url":"https://api.github.com/users/dumoulinj/following{/other_user}","gists_url":"https://api.github.com/users/dumoulinj/gists{/gist_id}","starred_url":"https://api.github.com/users/dumoulinj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumoulinj/subscriptions","organizations_url":"https://api.github.com/users/dumoulinj/orgs","repos_url":"https://api.github.com/users/dumoulinj/repos","events_url":"https://api.github.com/users/dumoulinj/events{/privacy}","received_events_url":"https://api.github.com/users/dumoulinj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T12:14:49Z","updated_at":"2015-05-08T12:19:28Z","closed_at":null,"body":"Hi,\r\n\r\nI have a model \"Dataset\", and a OneToOne relationship from model \"Monitoring\" to \"Dataset\".\r\nBoth are SelfPublishModel, with correct serializers and routers, and it works as expected.\r\n\r\nI have a Celery task that set a field \"running\" to True on the Monitoring instance, do something that take some time, and set the field to False when finished. Something like this:\r\n\r\ndataset.monitoring.running = True\r\ndataset.monitoring.save()\r\nDO SOMETHING THAT TAKE TIME (several seconds)\r\ndataset.monitoring.running = False\r\ndataset.monitoring.save()\r\n\r\nThen, in an AngularJS frontend, I subscribe to the channel, receive the messages, and update the corresponding models.\r\n\r\nThe problem is that my frontend only receive the update message after the running field is set to True, but not the second one when the running field is set to False...\r\n\r\nThanks for your help\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jonashagstedt/swampdragon/issues/comments/100215012","html_url":"https://github.com/jonashagstedt/swampdragon/issues/78#issuecomment-100215012","issue_url":"https://api.github.com/repos/jonashagstedt/swampdragon/issues/78","id":100215012,"user":{"login":"jonashagstedt","id":603835,"avatar_url":"https://avatars.githubusercontent.com/u/603835?v=3","gravatar_id":"","url":"https://api.github.com/users/jonashagstedt","html_url":"https://github.com/jonashagstedt","followers_url":"https://api.github.com/users/jonashagstedt/followers","following_url":"https://api.github.com/users/jonashagstedt/following{/other_user}","gists_url":"https://api.github.com/users/jonashagstedt/gists{/gist_id}","starred_url":"https://api.github.com/users/jonashagstedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonashagstedt/subscriptions","organizations_url":"https://api.github.com/users/jonashagstedt/orgs","repos_url":"https://api.github.com/users/jonashagstedt/repos","events_url":"https://api.github.com/users/jonashagstedt/events{/privacy}","received_events_url":"https://api.github.com/users/jonashagstedt/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T12:19:28Z","updated_at":"2015-05-08T12:19:28Z","body":"Without seeing how you have wired all this up I have no idea where to even begin.\r\n\r\nWhat does your router look like? How are you implementing the front end?\r\nIf you can share some code I might be able to help you"}}