{"action":"created","issue":{"url":"https://api.github.com/repos/viewflow/django-material/issues/187","repository_url":"https://api.github.com/repos/viewflow/django-material","labels_url":"https://api.github.com/repos/viewflow/django-material/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/viewflow/django-material/issues/187/comments","events_url":"https://api.github.com/repos/viewflow/django-material/issues/187/events","html_url":"https://github.com/viewflow/django-material/issues/187","id":185475428,"number":187,"title":"Django admin readonly_fields not working","user":{"login":"markkohdev","id":1663379,"avatar_url":"https://avatars.githubusercontent.com/u/1663379?v=3","gravatar_id":"","url":"https://api.github.com/users/markkohdev","html_url":"https://github.com/markkohdev","followers_url":"https://api.github.com/users/markkohdev/followers","following_url":"https://api.github.com/users/markkohdev/following{/other_user}","gists_url":"https://api.github.com/users/markkohdev/gists{/gist_id}","starred_url":"https://api.github.com/users/markkohdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markkohdev/subscriptions","organizations_url":"https://api.github.com/users/markkohdev/orgs","repos_url":"https://api.github.com/users/markkohdev/repos","events_url":"https://api.github.com/users/markkohdev/events{/privacy}","received_events_url":"https://api.github.com/users/markkohdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-26T18:38:53Z","updated_at":"2016-10-27T03:32:26Z","closed_at":null,"body":"In my Django ModelAdmin, if I specify readonly_fields then the fields stop populating their inputs in the detail page.  When I remove those fields from the `readonly_fields` list, they populate like normal.  When I switch from django-material to standard django theme, the fields show up when they are declared as readonly.\r\n\r\nHere's screenshots of the various cases\r\n\r\nDjango-material, fields specified as `readonly` (this is the broken scenario)\r\n![image](https://cloud.githubusercontent.com/assets/1663379/19738938/3029276a-9b87-11e6-9cd9-cdac053c2bfc.png)\r\n\r\nDjango-material, fields NOT specified as `readonly`\r\n![image](https://cloud.githubusercontent.com/assets/1663379/19739423/d9f41e98-9b88-11e6-93fb-c4c81b6e2778.png)\r\n\r\nDjango standard admin, fields specified as `readonly`\r\n![image](https://cloud.githubusercontent.com/assets/1663379/19739596/8fc31878-9b89-11e6-99f5-e907990fcf7d.png)\r\n\r\nHere's the model specification\r\n```python\r\nclass Data(BaseModel):\r\n    # Crawler attributes\r\n\r\n    # These three fields combined specify a tableset\r\n    project_id = models.CharField(max_length=200)\r\n    dataset_id = models.CharField(max_length=200)\r\n    table_base = models.CharField(max_length=1000)\r\n\r\n    table_id = models.CharField(max_length=200)\r\n    link = models.CharField('BigQuery Link', max_length=500)\r\n    bq_description = models.TextField(max_length=1000, blank=True, default='')\r\n    num_partitions = models.IntegerField()\r\n    num_rows = models.IntegerField()\r\n    date_modified_by_bq = models.DateTimeField('Last Crawled', null=True)\r\n```\r\n\r\nAnd the ModelAdmin read_only definition\r\n```python\r\n    readonly_fields = ['project_id',\r\n                       'dataset_id',\r\n                       'table_base',\r\n                       'link',\r\n                       'date_modified_by_curator',\r\n                       'date_modified_by_bq',\r\n                       'bq_description',\r\n                       'num_partitions',\r\n                       ]\r\n```\r\n\r\nI'm using django-material 0.9.1 with django 1.10.2\r\nI'm fairly confident that this is a bug.  Please help me fix it!\r\n"},"comment":{"url":"https://api.github.com/repos/viewflow/django-material/issues/comments/256538050","html_url":"https://github.com/viewflow/django-material/issues/187#issuecomment-256538050","issue_url":"https://api.github.com/repos/viewflow/django-material/issues/187","id":256538050,"user":{"login":"kmmbvnr","id":282529,"avatar_url":"https://avatars.githubusercontent.com/u/282529?v=3","gravatar_id":"","url":"https://api.github.com/users/kmmbvnr","html_url":"https://github.com/kmmbvnr","followers_url":"https://api.github.com/users/kmmbvnr/followers","following_url":"https://api.github.com/users/kmmbvnr/following{/other_user}","gists_url":"https://api.github.com/users/kmmbvnr/gists{/gist_id}","starred_url":"https://api.github.com/users/kmmbvnr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmmbvnr/subscriptions","organizations_url":"https://api.github.com/users/kmmbvnr/orgs","repos_url":"https://api.github.com/users/kmmbvnr/repos","events_url":"https://api.github.com/users/kmmbvnr/events{/privacy}","received_events_url":"https://api.github.com/users/kmmbvnr/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T03:32:26Z","updated_at":"2016-10-27T03:32:26Z","body":"Thanks for the fix!\r\n\r\nThat happens even with demo   http://forms.viewflow.io/admin/integration/continent/Australia/  "}}
{"actor":{"display_login":"kmmbvnr"}}