views:

219

answers:

2

Hello, I'm starting to learn Django and I have a question.

Is there any way to restric views in the administration interface? I see there are "change, "add" and "delete" permissions, but I wanted to restrict views also.

For example: Two users, "User 1" is superuser and "User 2" is in the editor group. User 1 has access to everything, but User 2 can't view a determined application in the administration.

Is that possible?

A: 

If you make sure that User 2 has no permissions for any model related to the app you want to hide away (so no change, add or delete powers for any of the models in that app), then it won't appear in the admin for User 2.

stevejalim
I didn't thought about that (silly me). Thanks!
Oscar Carballal
A: 

High, I would like to restrict user view only posts which are created by them. (mingus blog with django-blog app)

I there a way or ready to go example to get the querset like user='me' in the admin interface?

thx for support an newbie :)

macdet