Opened 9 years ago

Closed 9 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:


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

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by mrmachine

prefix Permission.str() with contenttype.app_label

comment:1 Changed 9 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

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