Django

Code

Ticket #3773 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: mrmachine Assigned to: adrian
Milestone: Component: django.contrib.admin
Version: SVN Keywords: auth app_label permissions
Cc: real.human@mrmachine.net Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

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

show_app_label_in_permission_list.txt (0.6 kB) - added by mrmachine on 03/20/07 20:08:21.
prefix Permission.str() with contenttype.app_label

Change History

03/20/07 20:08:21 changed by mrmachine

  • attachment show_app_label_in_permission_list.txt added.

prefix Permission.str() with contenttype.app_label

03/25/07 16:28:59 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(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/Change #3773 ([patch] display app_label in the admin's permission list)




Change Properties
Action