Customize Permissions in Django Admin

37 views
Skip to first unread message

Tameen Malik

unread,
Apr 15, 2014, 4:23:55 AM4/15/14
to django...@googlegroups.com
As django admin has three permissions in it's auth : add, change, delete! I want to add view permission in this auth in admin panel. ![enter image description here][1]


I know i have to customize permissions to add view permission in 'auth | permission | can_view permission' to view all entries!

    >>> from django.contrib.auth.models import User
    >>> User.user_permissions.add(new_permission) // WRONG WAY

 
  Question: Where to write code to add permissions in this model.
hnXei.png
Reply all
Reply to author
Forward
0 new messages