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.
-- 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.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/66ea66a2-9c99-40b2-ac6a-961a6460bcad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:
Post a Comment