{"action":"closed","issue":{"url":"https://api.github.com/repos/foxx/django-cutemodel/issues/7","labels_url":"https://api.github.com/repos/foxx/django-cutemodel/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/foxx/django-cutemodel/issues/7/comments","events_url":"https://api.github.com/repos/foxx/django-cutemodel/issues/7/events","html_url":"https://github.com/foxx/django-cutemodel/issues/7","id":74937979,"number":7,"title":"CuteModel with OneToOne field","user":{"login":"HowardRoark-xx","id":1954030,"avatar_url":"https://avatars.githubusercontent.com/u/1954030?v=3","gravatar_id":"","url":"https://api.github.com/users/HowardRoark-xx","html_url":"https://github.com/HowardRoark-xx","followers_url":"https://api.github.com/users/HowardRoark-xx/followers","following_url":"https://api.github.com/users/HowardRoark-xx/following{/other_user}","gists_url":"https://api.github.com/users/HowardRoark-xx/gists{/gist_id}","starred_url":"https://api.github.com/users/HowardRoark-xx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HowardRoark-xx/subscriptions","organizations_url":"https://api.github.com/users/HowardRoark-xx/orgs","repos_url":"https://api.github.com/users/HowardRoark-xx/repos","events_url":"https://api.github.com/users/HowardRoark-xx/events{/privacy}","received_events_url":"https://api.github.com/users/HowardRoark-xx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-10T15:12:09Z","updated_at":"2015-05-10T15:27:25Z","closed_at":"2015-05-10T15:27:25Z","body":"Hello Cal,\r\n\r\n Thank you for your wonderful audit log module. I happen to have an issue with CuteModel failing to save if the Model does not have \"id\" field. I have 2 models/tables that have OneToOne relationship and Django migration has created the child table auto_increment field as parent_id (see below for relation.) Now on Inline form, the CuteModel fails to save while any one of the field in child table is being saved with error \"'CcKBJustify' object has no attribute 'id'\" for the line \"django_cutemodel-1.1.0-py2.7.egg/cutemodel/models.py in save [line 227]. \r\n\r\nCould you please advise me how to circumvent this issue?\r\n\r\nModel 1;\r\n\r\nclass CcKBDetails(CuteModel):\r\n    APPROVED = []\r\n    for m in CcKBFieldMeta.objects.filter(cc_kb_category=2):\r\n        APPROVED.append((m.id, m.cc_kb_value))\r\n\r\n    application_id = models.CharField(max_length=20, null=False)\r\n    cloud_id = models.CharField(max_length=20, null=True, blank=True)\r\n\r\nModel 2:\r\nclass CcKBJustify(CuteModel):\r\n    cckbdetails = models.OneToOneField(CcKBDetails,primary_key=True)\r\n\r\nThanks,\r\nAmar."}}