{"action":"created","issue":{"url":"https://api.github.com/repos/saxix/django-concurrency/issues/69","repository_url":"https://api.github.com/repos/saxix/django-concurrency","labels_url":"https://api.github.com/repos/saxix/django-concurrency/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/saxix/django-concurrency/issues/69/comments","events_url":"https://api.github.com/repos/saxix/django-concurrency/issues/69/events","html_url":"https://github.com/saxix/django-concurrency/issues/69","id":171876329,"number":69,"title":"does django-concurrency support front end update?","user":{"login":"andy2046","id":2193706,"avatar_url":"https://avatars.githubusercontent.com/u/2193706?v=3","gravatar_id":"","url":"https://api.github.com/users/andy2046","html_url":"https://github.com/andy2046","followers_url":"https://api.github.com/users/andy2046/followers","following_url":"https://api.github.com/users/andy2046/following{/other_user}","gists_url":"https://api.github.com/users/andy2046/gists{/gist_id}","starred_url":"https://api.github.com/users/andy2046/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy2046/subscriptions","organizations_url":"https://api.github.com/users/andy2046/orgs","repos_url":"https://api.github.com/users/andy2046/repos","events_url":"https://api.github.com/users/andy2046/events{/privacy}","received_events_url":"https://api.github.com/users/andy2046/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-18T11:10:26Z","updated_at":"2016-08-23T15:00:05Z","closed_at":null,"body":"Hi,\r\n\r\nI configured django-concurrency for my app, and it works for the model in admin site, but from my own custom detail template html page which calls view function to update/save model, it does not work, how to configure to support this? thanks. "},"comment":{"url":"https://api.github.com/repos/saxix/django-concurrency/issues/comments/241760311","html_url":"https://github.com/saxix/django-concurrency/issues/69#issuecomment-241760311","issue_url":"https://api.github.com/repos/saxix/django-concurrency/issues/69","id":241760311,"user":{"login":"claytondaley","id":1097439,"avatar_url":"https://avatars.githubusercontent.com/u/1097439?v=3","gravatar_id":"","url":"https://api.github.com/users/claytondaley","html_url":"https://github.com/claytondaley","followers_url":"https://api.github.com/users/claytondaley/followers","following_url":"https://api.github.com/users/claytondaley/following{/other_user}","gists_url":"https://api.github.com/users/claytondaley/gists{/gist_id}","starred_url":"https://api.github.com/users/claytondaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claytondaley/subscriptions","organizations_url":"https://api.github.com/users/claytondaley/orgs","repos_url":"https://api.github.com/users/claytondaley/repos","events_url":"https://api.github.com/users/claytondaley/events{/privacy}","received_events_url":"https://api.github.com/users/claytondaley/received_events","type":"User","site_admin":false},"created_at":"2016-08-23T15:00:05Z","updated_at":"2016-08-23T15:00:05Z","body":"The currency check is automatically called when you save a model with an `IntegerVersionField`.  Here's a nice compact example that should work:\r\n\r\n```\r\ndef myview(request):\r\n    post = request.POST\r\n    myinstance,created = mymodel.objects.get_or_create(myid=post['id'])\r\n    myinstance.data = post['data']\r\n    myinstance.version = post['version']\r\n    myinstance.save()\r\n```"}}
{"actor":{"display_login":"claytondaley"}}