{"action":"created","issue":{"url":"https://api.github.com/repos/translate/pootle/issues/4376","labels_url":"https://api.github.com/repos/translate/pootle/issues/4376/labels{/name}","comments_url":"https://api.github.com/repos/translate/pootle/issues/4376/comments","events_url":"https://api.github.com/repos/translate/pootle/issues/4376/events","html_url":"https://github.com/translate/pootle/issues/4376","id":126696480,"number":4376,"title":"Do not display unnecessary permissions","user":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/translate/pootle/labels/cleanup","name":"cleanup","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"unho","id":939880,"avatar_url":"https://avatars.githubusercontent.com/u/939880?v=3","gravatar_id":"","url":"https://api.github.com/users/unho","html_url":"https://github.com/unho","followers_url":"https://api.github.com/users/unho/followers","following_url":"https://api.github.com/users/unho/following{/other_user}","gists_url":"https://api.github.com/users/unho/gists{/gist_id}","starred_url":"https://api.github.com/users/unho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unho/subscriptions","organizations_url":"https://api.github.com/users/unho/orgs","repos_url":"https://api.github.com/users/unho/repos","events_url":"https://api.github.com/users/unho/events{/privacy}","received_events_url":"https://api.github.com/users/unho/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-01-14T16:51:12Z","updated_at":"2016-01-15T14:01:18Z","closed_at":null,"body":"When assigning permissions for users several unnecessary permissions are listed:\r\n\r\n- `Can add directory`\r\n- `Can change directory`\r\n- `Can delete directory`\r\n\r\nThis happens for TP, language and project, and probably in all the permission views.\r\n\r\nExpected behavior is not to list those in order to do not overwhelm with long permission choices."},"comment":{"url":"https://api.github.com/repos/translate/pootle/issues/comments/171968217","html_url":"https://github.com/translate/pootle/issues/4376#issuecomment-171968217","issue_url":"https://api.github.com/repos/translate/pootle/issues/4376","id":171968217,"user":{"login":"julen","id":16768,"avatar_url":"https://avatars.githubusercontent.com/u/16768?v=3","gravatar_id":"","url":"https://api.github.com/users/julen","html_url":"https://github.com/julen","followers_url":"https://api.github.com/users/julen/followers","following_url":"https://api.github.com/users/julen/following{/other_user}","gists_url":"https://api.github.com/users/julen/gists{/gist_id}","starred_url":"https://api.github.com/users/julen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julen/subscriptions","organizations_url":"https://api.github.com/users/julen/orgs","repos_url":"https://api.github.com/users/julen/repos","events_url":"https://api.github.com/users/julen/events{/privacy}","received_events_url":"https://api.github.com/users/julen/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T14:01:17Z","updated_at":"2016-01-15T14:01:17Z","body":"FTR, these are also displayed in the site-wide permissions view.\r\n\r\nI recall I got rid of these in the past with a data migration, but they were being re-created when running migrations because there was no way to omit the default permissions for a model. Now it seems there's a way to prevent that by specifying [`default_permissions`](https://docs.djangoproject.com/en/1.8/ref/models/options/#django.db.models.Options.permissions) in the model's `Meta` class.\r\n\r\nThe fix proposed in #4379 works fine in my testing @unho. Taken into account the possibility mentioned above though, I believe it'd be cleaner not to manually exclude permissions from being displayed (it becomes harder to maintain) but rather prevent them from being created. It's probably worth giving a shot to this approach (if you haven't already)."}}