Opened 19 years ago
Closed 19 years ago
#3773 closed (fixed)
[patch] display app_label in the admin's permission list
| Reported by: | Tai Lee | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | contrib.admin | Version: | dev |
| Severity: | Keywords: | auth app_label permissions | |
| Cc: | real.human@… | Triage Stage: | Unreviewed |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
the __str__() method of django.contrib.auth.models.Permission returns the related content type name and the permission (add, change, delete). when working on a project with several apps, some of which have models with the same name, it is impossible to distinguish which permission corresponds to which application in the list. attached is a patch to display app_label | model | permission instead of the current model | permission.
Attachments (1)
Change History (2)
by , 19 years ago
| Attachment: | show_app_label_in_permission_list.txt added |
|---|
comment:1 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
prefix Permission.str() with contenttype.app_label