Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django Admin - Giving staff members access to certain areas by default

Could anyone tell me how to give staff users in django (those with is_staff set to true) access to some models by default in the admin interface? Currently if I log in as a staff member I just get "You don't have permission to edit anything". If I log in as a super user I get access to several things (those registered in admin.py).

I'd like to basically treat staff members as a group and allow them to edit a selection of models, or to set some permissions as defaults. I have searched around the documentation to no avail.

like image 624
hajamie Avatar asked Jan 17 '12 17:01

hajamie


1 Answers

You can create a group and make new staff users members in it. Not giving permissions by default is a security feature.

like image 55
dan-klasson Avatar answered Sep 28 '22 10:09

dan-klasson