{"action":"closed","issue":{"url":"https://api.github.com/repos/viewflow/django-material/issues/170","repository_url":"https://api.github.com/repos/viewflow/django-material","labels_url":"https://api.github.com/repos/viewflow/django-material/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/viewflow/django-material/issues/170/comments","events_url":"https://api.github.com/repos/viewflow/django-material/issues/170/events","html_url":"https://github.com/viewflow/django-material/issues/170","id":177065717,"number":170,"title":"django-admin field is hidden in change list","user":{"login":"daadu","id":4963236,"avatar_url":"https://avatars.githubusercontent.com/u/4963236?v=3","gravatar_id":"","url":"https://api.github.com/users/daadu","html_url":"https://github.com/daadu","followers_url":"https://api.github.com/users/daadu/followers","following_url":"https://api.github.com/users/daadu/following{/other_user}","gists_url":"https://api.github.com/users/daadu/gists{/gist_id}","starred_url":"https://api.github.com/users/daadu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daadu/subscriptions","organizations_url":"https://api.github.com/users/daadu/orgs","repos_url":"https://api.github.com/users/daadu/repos","events_url":"https://api.github.com/users/daadu/events{/privacy}","received_events_url":"https://api.github.com/users/daadu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T01:32:25Z","updated_at":"2016-09-15T01:54:42Z","closed_at":"2016-09-15T01:54:42Z","body":"models.py:\r\n\r\n```\r\nclass Otp(models.Model):\r\n    country_code = models.CharField(max_length=2)\r\n    mobile_number = models.CharField(max_length=10)\r\n    otp = models.CharField(max_length=6)\r\n    used = models.BooleanField(default=False)\r\n    created_at = models.DateTimeField(auto_now_add=True)\r\n    updated_at = models.DateTimeField(auto_now=True)\r\n\r\n    def __str__(self):\r\n        return \"%s-%s\" % (self.mobile_number, self.otp)\r\n\r\n    @classmethod\r\n    def generate_otp(cls):\r\n        return \"%d\" % randint(100000, 999999)\r\n```\r\n\r\nadmin.py:\r\n```\r\n\r\nclass OtpAdmin(admin.ModelAdmin):\r\n    search_fields = ['mobile_number']\r\n    list_filter = ['used']\r\n    date_hierarchy = \"created_at\"\r\n    list_display = ['country_code', 'mobile_number', 'otp', 'used']\r\n    readonly_fields = [\"country_code\", 'mobile_number', 'otp', 'used']\r\n```\r\n\r\n![screenshot from 2016-09-15 07-01-39](https://cloud.githubusercontent.com/assets/4963236/18535493/4ef97fc2-7b12-11e6-9d38-5a94a6cd2bb5.png)\r\n\r\n\r\nas you can see the field is hidden.\r\n\r\n\r\nwhat is the issure? how can i fix it?"}}
{"actor":{"display_login":"kmmbvnr"}}