I want to let a few users to be able to access the django admin site, but in some models allow permission to only being able to view the list of objects.
Is there an easy way of doing this or should I just create a view to show this information?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe there is support for “view only” object-level permissions, so you should probably just create a view to display this.
You could use one of the existing permission decorators to throw an error on save if the user isn’t authenticated, but this allows them to view the object details, something you don’t seem to want to do.