django admin site - filtering available objects for user
Posted
by JPG
on Stack Overflow
See other posts from Stack Overflow
or by JPG
Published on 2010-05-25T22:09:20Z
Indexed on
2010/05/26
2:21 UTC
Read the original article
Hit count: 248
I have models that belong to some 'group' (Company class). I want to add users, who will also belong to a one group and should be able to edit/manage/add objects with membership in associated group.
something like:
class Company()
class Something()
company = ForeignKey(Company)
user Microsoft_admin
company = ForeignKey(Company)
and this user should only see and edit objects belonging to associated Company in the Admin Interface.
How to acomplish that?
© Stack Overflow or respective owner