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
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.
Reply all
Reply to author
Forward
0 new messages