Opened 17 years ago

Closed 17 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)

show_app_label_in_permission_list.txt (615 bytes ) - added by Tai Lee 17 years ago.
prefix Permission.str() with contenttype.app_label

Download all attachments as: .zip

Change History (2)

by Tai Lee, 17 years ago

prefix Permission.str() with contenttype.app_label

comment:1 by Adrian Holovaty, 17 years ago

Resolution: fixed
Status: newclosed

(In [4823]) Fixed #3773 -- Added app_label to Permission.str(), so that the admin permission list is easier to use with multiple permissions of the same name. Thanks, mrmachine

Note: See TracTickets for help on using tickets.
Back to Top