I am not able to access user_permissions without superuser access
16 views
Skip to first unread message
shashank sharma
unread,
Nov 25, 2016, 9:07:59 AM11/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I created a user with some permissions by django AbstractUser model without superuser/staff access, a simple user can say. Now I can login successfully and when I am trying to access permissions of user like request.user.user_permissions.all() in my ListView it gives me an error like "relation views_list_user_permissions does not exists". But If I tried to access permissions by superuser then I can, it seems like to me I am not able to use user_permission field correctly which is a m2m of Permission class. Please correct me If I am doing something wrong.