Code

Opened 7 years ago

Closed 7 years ago

#3773 closed (fixed)

[patch] display app_label in the admin's permission list

Reported by: mrmachine Owned by: adrian
Component: contrib.admin Version: master
Severity: Keywords: auth app_label permissions
Cc: real.human@… Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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 mrmachine 7 years ago.
prefix Permission.str() with contenttype.app_label

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by mrmachine

prefix Permission.str() with contenttype.app_label

comment:1 Changed 7 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.