[patch] add 'view' as a default permission in django.contrib.auth
|Reported by:||Tai Lee||Owned by:||Adrian Holovaty|
|Severity:||Keywords:||auth default permissions view|
|Cc:||real.human@…||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
i'd like to see 'view' added to the list of default permissions (add, change, delete) created for every model when django.contrib.auth is installed. this could be used by django.contrib.admin to allow selected staff to view the changelist and object detail screens, without giving them permission to add, change, or delete objects. even if not used by django.contrib.admin (at least for now), it would also be a useful generic permission in most django applications.
i also think the name of each permission should reference verbose_name_plural instead of verbose_name as it does now. "auth | user | Can add users" makes more sense than "auth | user | Can add user".
attached is a simple patch for these two changes.
Change History (7)
comment:2 Changed 10 years ago by
|Status:||closed → reopened|
|Summary:||[patch] add 'view' as a default permission in django.contrib.auth (and django.contrib.admin) → [patch] add 'view' as a default permission in django.contrib.auth|