{"action":"created","issue":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/440","labels_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/440/labels{/name}","comments_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/440/comments","events_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/440/events","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/440","id":84492823,"number":440,"title":"Custom modelform issues","user":{"login":"Hedde","id":1533552,"avatar_url":"https://avatars.githubusercontent.com/u/1533552?v=3","gravatar_id":"","url":"https://api.github.com/users/Hedde","html_url":"https://github.com/Hedde","followers_url":"https://api.github.com/users/Hedde/followers","following_url":"https://api.github.com/users/Hedde/following{/other_user}","gists_url":"https://api.github.com/users/Hedde/gists{/gist_id}","starred_url":"https://api.github.com/users/Hedde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hedde/subscriptions","organizations_url":"https://api.github.com/users/Hedde/orgs","repos_url":"https://api.github.com/users/Hedde/repos","events_url":"https://api.github.com/users/Hedde/events{/privacy}","received_events_url":"https://api.github.com/users/Hedde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-03T10:53:55Z","updated_at":"2015-06-04T10:10:55Z","closed_at":null,"body":"I have tested some of my earlier reported issues with the newest branch and I still have problems with my use case\r\n\r\nfork: https://github.com/Hedde/django-autocomplete-light (NEW fork)\r\nexampleapp: admin_readonly_issue\r\n\r\nUse case:\r\n- I want to add autosuggest to some mandatory fields in the admin\r\n- I want the saved choice to be immutable after a primary key is assigned, so I tried to override get_readonly_fields\r\n\r\nWhen adding a custom ModelForm to the admin with a modelchoice field, there's several thing going wrong, I have added documentation lines to the admin.py file and here's some screenshots;\r\n\r\n**saving a modelform with readonly fields**\r\n\r\n![schermafbeelding 2015-06-03 om 12 44 44](https://cloud.githubusercontent.com/assets/1533552/7958374/01dec0f2-09ef-11e5-9a18-cb321e4c3123.png)\r\n\r\n**saving a modelform with ModelY.x left empty with required=False on the modelform**\r\n\r\n![schermafbeelding 2015-06-03 om 12 48 31](https://cloud.githubusercontent.com/assets/1533552/7958377/063f40ea-09ef-11e5-8659-4a0be2c9faff.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/comments/108823768","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/440#issuecomment-108823768","issue_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/440","id":108823768,"user":{"login":"Hedde","id":1533552,"avatar_url":"https://avatars.githubusercontent.com/u/1533552?v=3","gravatar_id":"","url":"https://api.github.com/users/Hedde","html_url":"https://github.com/Hedde","followers_url":"https://api.github.com/users/Hedde/followers","following_url":"https://api.github.com/users/Hedde/following{/other_user}","gists_url":"https://api.github.com/users/Hedde/gists{/gist_id}","starred_url":"https://api.github.com/users/Hedde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hedde/subscriptions","organizations_url":"https://api.github.com/users/Hedde/orgs","repos_url":"https://api.github.com/users/Hedde/repos","events_url":"https://api.github.com/users/Hedde/events{/privacy}","received_events_url":"https://api.github.com/users/Hedde/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T10:10:55Z","updated_at":"2015-06-04T10:10:55Z","body":"Confirmed"}}