I'm trying to build a Django site which is capable of supporting multiple organizations. Each organizations will have its own staff and admin, and each staff can only login to the admin page of their organization, and CRUD data input from staff of the same organization as them.
So far, I don't have any problem create multiple admin pages extending AdminSite. But I don't know how I can assign admin/staff account to their own organization so that they can only access their organization's Admin Page and the organization's data accordingly (a staff account now can enter any AdminPage).
I'm also not sure what is the best way to filter data for each Admin Page. What I have in mind for now is adding one more 'group' column for my Data Model, and filter the query in each admin page based on the 'group' of the person querying.
Any help and insight on this would be appreciated.