How to limit fields in django-admin depending on user?

Posted by minder on Stack Overflow See other posts from Stack Overflow or by minder
Published on 2010-04-10T21:49:37Z Indexed on 2010/04/10 21:53 UTC
Read the original article Hit count: 273

Filed under:
|

I suppose similar problem would have been discussed here, but I couldn't find it.

Let's suppose I have an Editor and a Supervisor. I want the Editor to be able to add new content (eg. a news post) but before publication it has to be acknowledged by Supervisor.

When Editor lists all items, I want to set some fields on the models (like an 'ack' field) as read-only (so he could know what had been ack'ed and what's still waiting approval) but the Supervisor should be able to change everything (list_editable would be perfect)

What are the possible solutions to this problem?

© Stack Overflow or respective owner

Related posts about django-admin

Related posts about django