{"action":"created","issue":{"url":"https://api.github.com/repos/jpwatts/django-positions/issues/49","repository_url":"https://api.github.com/repos/jpwatts/django-positions","labels_url":"https://api.github.com/repos/jpwatts/django-positions/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/jpwatts/django-positions/issues/49/comments","events_url":"https://api.github.com/repos/jpwatts/django-positions/issues/49/events","html_url":"https://github.com/jpwatts/django-positions/issues/49","id":177569779,"number":49,"title":"Django 1.10 error on add new instance","user":{"login":"MikeVL","id":118285,"avatar_url":"https://avatars3.githubusercontent.com/u/118285?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeVL","html_url":"https://github.com/MikeVL","followers_url":"https://api.github.com/users/MikeVL/followers","following_url":"https://api.github.com/users/MikeVL/following{/other_user}","gists_url":"https://api.github.com/users/MikeVL/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeVL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeVL/subscriptions","organizations_url":"https://api.github.com/users/MikeVL/orgs","repos_url":"https://api.github.com/users/MikeVL/repos","events_url":"https://api.github.com/users/MikeVL/events{/privacy}","received_events_url":"https://api.github.com/users/MikeVL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-17T11:03:29Z","updated_at":"2017-08-16T15:18:03Z","closed_at":null,"body":"I have model with PositionField. On create instance i got error:\n\n```\nTraceback (most recent call last):\n  File \"<console>\", line 1, in <module>\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/base.py\", line 796, in save\n    force_update=force_update, update_fields=update_fields)\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/base.py\", line 824, in save_base\n    updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)\n  File \"/usr/local/lib/python2.7/dist-packages/django/db/models/base.py\", line 880, in _save_table\n    raise ValueError(\"Cannot force an update in save() with no primary key.\")\nValueError: Cannot force an update in save() with no primary key.\n```\n"},"comment":{"url":"https://api.github.com/repos/jpwatts/django-positions/issues/comments/322805993","html_url":"https://github.com/jpwatts/django-positions/issues/49#issuecomment-322805993","issue_url":"https://api.github.com/repos/jpwatts/django-positions/issues/49","id":322805993,"user":{"login":"lucianafujii","id":5991194,"avatar_url":"https://avatars2.githubusercontent.com/u/5991194?v=4","gravatar_id":"","url":"https://api.github.com/users/lucianafujii","html_url":"https://github.com/lucianafujii","followers_url":"https://api.github.com/users/lucianafujii/followers","following_url":"https://api.github.com/users/lucianafujii/following{/other_user}","gists_url":"https://api.github.com/users/lucianafujii/gists{/gist_id}","starred_url":"https://api.github.com/users/lucianafujii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucianafujii/subscriptions","organizations_url":"https://api.github.com/users/lucianafujii/orgs","repos_url":"https://api.github.com/users/lucianafujii/repos","events_url":"https://api.github.com/users/lucianafujii/events{/privacy}","received_events_url":"https://api.github.com/users/lucianafujii/received_events","type":"User","site_admin":false},"created_at":"2017-08-16T15:18:03Z","updated_at":"2017-08-16T15:18:03Z","body":"Hi, I had a similar error just by overriding save method and overriding get_deferred_fields worked as a workaround. So thanks! Have you considered reporting that to Django?"}}
{"actor":{"display_login":"lucianafujii"}}